Function at 0x4371a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e87e8
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x52910c]
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 0x4376f0
mov eax, dword [edi + 0xb8]
or eax, dword [edi + 0xbc]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x437254
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe0]
mov edx, eax
sub eax, ecx
cmp eax, 0xbb8
jae 0x437244
sub ecx, edx
lea eax, [ecx + 0xbb8]
mov ecx, 0xbb8
cmp eax, ecx
cmova eax, ecx
push eax
jmp 0x437252
cmp byte [edi + 0xc0], 0
jne 0x437254
push 0x5dc
call ebx
push 0x38
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.004babe0
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 0x4372b0
mov dword [ebp - 0x128], 0x5091ac
mov dword [ebp - 0x118], 0x5091a4
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.0043d450
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 0x4373a9
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov ebx, dword [0x5311c0]
test ebx, ebx
jne 0x4373dd
push 0xf0
call fcn.004a1874
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 [0x5311c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x43743e
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x437403
mov ecx, dword [edx]
jmp 0x437405
mov ecx, edx
mov byte [ecx], 0
cmp byte [eax], 0
jne 0x437411
xor ecx, ecx
jmp 0x43742d
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 0x437420
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 0x437453
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.0049e347
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 0x4375bc
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 0x4374fb
mov edi, dword [edi]
mov ebx, dword [0x5311c0]
test ebx, ebx
jne 0x43752c
push 0xf0
call fcn.004a1874
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 [0x5311c0], ebx
cmp dword [ebx + 0xb8], 4
jg 0x437583
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x437552
mov eax, dword [edx]
jmp 0x437554
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x437560
xor ecx, ecx
jmp 0x437572
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437568
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 0x437598
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 0x4376df
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 0x43761f
mov edi, dword [edi]
mov ebx, dword [0x5311c0]
test ebx, ebx
jne 0x437650
push 0xf0
call fcn.004a1874
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 [0x5311c0], ebx
cmp dword [ebx + 0xb8], 1
jg 0x4376ab
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x437676
mov eax, dword [edx]
jmp 0x437678
mov eax, edx
mov byte [eax], 0
cmp byte [edi], 0
jne 0x437684
xor ecx, ecx
jmp 0x43769a
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 0x437690
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 0x4376c0
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.0049e347
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.004a1855
mov esp, ebp
pop ebp
ret 4