Function at 0x436d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e73f8
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 0x437250
mov eax, dword [edi + 0xb8]
or eax, dword [edi + 0xbc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x436db4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe0]
mov edx, eax
sub eax, ecx
cmp eax, 0xbb8
jae 0x436da4
sub ecx, edx
lea eax, [ecx + 0xbb8]
mov ecx, 0xbb8
cmp eax, ecx
cmova eax, ecx
push eax
jmp 0x436db2
cmp byte [edi + 0xc0], 0
jne 0x436db4
push 0x5dc
call ebx
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004b98e0
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.00407960
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 0x436e10
mov dword [ebp - 0x128], 0x5071ac
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.00405ba0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x128]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], 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.00405e50
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.004060e0
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.004060e0
mov edx, str.__arg:
mov ecx, eax
call fcn.004060e0
movsd xmm1, qword [ebp - 0x30]
mov ecx, eax
call fcn.0043cfb0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
call fcn.00404c20
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x436f09
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x436f3d
push 0xf0
call fcn.004a0505
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00404270
mov ebx, eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x6c]
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x436f9e
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x436f63
mov ecx, dword [edx]
jmp 0x436f65
mov ecx, edx
mov byte [ecx], 0
cmp byte [eax], 0
jne 0x436f71
xor ecx, ecx
jmp 0x436f8d
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 0x436f80
sub ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
push ecx
push eax
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, ebx
call fcn.00404920
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x436fb3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0xc0]
call fcn.00404c40
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - 0xc0], vtable.std::ios_base.0
call fcn.0049cfc7
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 0x43711c
lea ecx, [ebp - 0x1d8]
call fcn.00404d30
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1c8]
push dword [ebp - 0x70]
mov edx, str.CBufferManager::SendCommand_Failed
call fcn.004060e0
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.004060e0
mov edx, str._size:
mov ecx, eax
call fcn.004060e0
mov ecx, eax
call fcn.0041a450
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00404c20
mov edi, eax
mov byte [ebp - 4], 9
cmp dword [edi + 0x14], 0x10
jb 0x43705b
mov edi, dword [edi]
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x43708c
push 0xf0
call fcn.004a0505
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00404270
mov ebx, eax
mov byte [ebp - 4], 9
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 4
jg 0x4370e3
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4370b2
mov eax, dword [edx]
jmp 0x4370b4
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x4370c0
xor ecx, ecx
jmp 0x4370d2
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4370c8
sub ecx, dword [ebp - 0x64]
push ecx
push edi
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, ebx
call fcn.00404920
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4370f8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0x170]
call fcn.00404c40
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x170]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
jmp 0x43723f
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x74], 1
call fcn.00404d30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x278]
push dword [ebp - 0x70]
mov edx, str.CBufferManager::SendCommand_Success
call fcn.004060e0
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.004060e0
mov edx, str._size:
mov ecx, eax
call fcn.004060e0
mov ecx, eax
call fcn.0041a450
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x288]
call fcn.00404c20
mov edi, eax
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x14], 0x10
jb 0x43717f
mov edi, dword [edi]
mov ebx, dword [0x52e1c0]
test ebx, ebx
jne 0x4371b0
push 0xf0
call fcn.004a0505
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00404270
mov ebx, eax
mov byte [ebp - 4], 0xd
mov dword [0x52e1c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x43720b
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x4371d6
mov eax, dword [edx]
jmp 0x4371d8
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x4371e4
xor ecx, ecx
jmp 0x4371fa
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 0x4371f0
sub ecx, dword [ebp - 0x64]
push ecx
push edi
mov ecx, edx
call fcn.00409af0
push ecx
mov ecx, ebx
call fcn.00404920
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x437220
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004099a0
lea ecx, [ebp - 0x220]
call fcn.00404c40
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.0049cfc7
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.004a04d5
mov esp, ebp
pop ebp
ret 4