Function at 0x436480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6988
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x52610c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsd qword [ebp - 0x68], xmm2
mov edi, ecx
lea esi, [edi + 0x118]
mov dword [ebp - 0x6c], 0
push esi
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
je 0x4369d0
mov eax, dword [edi + 0xb8]
or eax, dword [edi + 0xbc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x436534
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe0]
mov edx, eax
sub eax, ecx
cmp eax, 0xbb8
jae 0x436524
sub ecx, edx
lea eax, [ecx + 0xbb8]
mov ecx, 0xbb8
cmp eax, ecx
cmova eax, ecx
push eax
jmp 0x436532
cmp byte [edi + 0xc0], 0
jne 0x436534
push 0x5dc
call ebx
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004b8fe0
mov ecx, dword [edi + 0xb8]
add esp, 0xc
mov eax, dword [edi + 0xbc]
movsd xmm0, qword [ebp - 0x68]
mov dword [ebp - 0x58], ecx
add ecx, 1
mov dword [ebp - 0x54], eax
adc eax, 0
mov dword [edi + 0xb8], ecx
mov ecx, dword [ebp + 8]
movsd qword [ebp - 0x30], xmm0
mov dword [edi + 0xbc], eax
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x5c], 0
call fcn.00407910
mov ecx, eax
lea edx, [ebp - 0x50]
sub edx, ecx
nop
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x436590
mov dword [ebp - 0x128], 0x5071b4
mov dword [ebp - 0x118], 0x5071a4
mov dword [ebp - 0xc0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x6c], 1
call fcn.00405b50
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x128], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x12c], eax
lea eax, [ebp - 0x110]
mov ecx, eax
mov dword [ebp - 0x64], eax
call fcn.00405e00
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov edx, str.CBufferManager::SendCommand_command:
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x118]
call fcn.00406090
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00406090
mov edx, str.__arg:
mov ecx, eax
call fcn.00406090
movsd xmm1, qword [ebp - 0x30]
mov ecx, eax
call fcn.0043c730
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.00404bd0
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x436689
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x4366bd
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404220
mov ebx, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x6c]
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x43671e
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4366e3
mov ecx, dword [edx]
jmp 0x4366e5
mov ecx, edx
mov byte [ecx], 0
cmp byte [eax], 0
jne 0x4366f1
xor ecx, ecx
jmp 0x43670d
mov ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436700
sub ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
push ecx
push eax
mov ecx, edx
call fcn.00409aa0
push ecx
mov ecx, ebx
call fcn.004048d0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x436733
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0xc0]
call fcn.00404bf0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.0049c747
add esp, 4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x70]
push 0
push eax
push 0x38
lea eax, [ebp - 0x60]
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 8
test eax, eax
jne 0x43689c
lea ecx, [ebp - 0x1d8]
call fcn.00404ce0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x70]
mov edx, str.CBufferManager::SendCommand_Failed
call fcn.00406090
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00406090
mov edx, str._size:
mov ecx, eax
call fcn.00406090
mov ecx, eax
call fcn.0041a2d0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00404bd0
mov edi, eax
mov byte [ebp - 4], 9
cmp dword [edi + 0x14], 0x10
jb 0x4367db
mov edi, dword [edi]
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x43680c
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404220
mov ebx, eax
mov byte [ebp - 4], 9
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 4
jg 0x436863
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x436832
mov eax, dword [edx]
jmp 0x436834
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x436840
xor ecx, ecx
jmp 0x436852
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436848
sub ecx, dword [ebp - 0x64]
push ecx
push edi
mov ecx, edx
call fcn.00409aa0
push ecx
mov ecx, ebx
call fcn.004048d0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x436878
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0x170]
call fcn.00404bf0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x170]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x4369bf
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x74], 1
call fcn.00404ce0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x278]
push dword [ebp - 0x70]
mov edx, str.CBufferManager::SendCommand_Success
call fcn.00406090
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00406090
mov edx, str._size:
mov ecx, eax
call fcn.00406090
mov ecx, eax
call fcn.0041a2d0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x288]
call fcn.00404bd0
mov edi, eax
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x14], 0x10
jb 0x4368ff
mov edi, dword [edi]
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x436930
push 0xf0
call fcn.0049fc85
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00404220
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x43698b
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x436956
mov eax, dword [edx]
jmp 0x436958
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x436964
xor ecx, ecx
jmp 0x43697a
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436970
sub ecx, dword [ebp - 0x64]
push ecx
push edi
mov ecx, edx
call fcn.00409aa0
push ecx
mov ecx, ebx
call fcn.004048d0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4369a0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409950
lea ecx, [ebp - 0x220]
call fcn.00404bf0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x220]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0049c747
add esp, 4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049fc55
mov esp, ebp
pop ebp
ret 4