Function at 0x40623c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x406363
cmp esi, ebx
jle 0x406363
lea edi, [esi + esi]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.004046cc
cmp edi, ebx
jl 0x4062c3
cmp edi, 0x6400000
jg 0x4062c3
cmp edi, ebx
jne 0x406282
mov dword [ebp - 8], 1
add dword [ebp - 8], 4
cmp dword [0x42ca0c], ebx
jne 0x40629b
call fcn.00405c10
cmp al, bl
je 0x406363
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
jne 0x4062be
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 8], eax
jmp 0x4062c6
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x406363
call fcn.004046cc
cmp edi, 1
jbe 0x406303
cmp esi, 1
jbe 0x406303
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.004059ed
add esp, 0x10
cmp al, bl
je 0x406303
mov esi, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], 2
lea edi, [esi + 0x3b]
call fcn.004046cc
cmp edi, 0x6400000
ja 0x40634d
cmp edi, ebx
jne 0x40631a
xor edi, edi
inc edi
add edi, 4
cmp dword [0x42ca0c], ebx
jne 0x40632e
call fcn.00405c10
cmp al, bl
je 0x40634d
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push 8
push dword [0x42ca0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
jne 0x40634f
jmp 0x4062b7
xor eax, eax
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x40636c
call fcn.004046cc
push dword [ebp - 8]
call fcn.00405c44
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x1c
call fcn.004046cc
push eax
call fcn.004054a4
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edx
call fcn.004046cc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], 0x80051a85
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 0x14]
mov dword [eax + 0x20], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x35], cl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x24], esi
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 4]
mov cl, byte [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], cl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 8]
add eax, 0x36
push eax
call fcn.00412d60
add esp, 0xc
call fcn.004046cc
push dword [ebp - 8]
call fcn.00405c44
mov edi, dword [ebp - 4]
add edi, 4
call fcn.004046cc
cmp edi, ebx
je 0x406428
lea eax, [esi + 0x32]
push eax
push edi
call fcn.00401806
jmp 0x40642a
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [eax + esi + 0x36], ecx
mov esi, 0x429c8c
call fcn.004046cc
push esi
call fcn.00405cd1
cmp al, bl
jne 0x406456
push 0x67
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40643d
push ebx
lea eax, [ebp - 4]
push eax
push 4
pop eax
mov ecx, 0x429c7c
call fcn.004060be
call fcn.0040653c
call fcn.004046cc
push esi
call fcn.00405cf1
mov al, 1
jmp 0x406365