Function at 0x4045b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
push esi
mov esi, ecx
call fcn.00404140
test eax, eax
jne 0x4045cc
pop esi
add esp, 0xb0
ret 4
mov ecx, esi
call fcn.00404310
test eax, eax
jne 0x4045e1
pop esi
add esp, 0xb0
ret 4
push ebx
push ebp
push edi
mov ecx, esi
call fcn.00404360
mov ecx, dword [esp + 0xc4]
mov eax, dword [esi]
mov edx, 0x9d
mov edi, pe_nt_image_headers32
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x80], edx
mov edx, 0xbc
mov ebp, 0x6a
mov dword [ecx], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x24], ebp
mov ecx, 0x9a
mov eax, 0xab
mov ebx, 0xc4
mov dword [esp + 0x6c], ebp
mov edi, 0x11f
mov edx, 0x144
mov dword [esp + 0xbc], ebp
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
mov dword [esp + 0x20], 0x3b
mov dword [esp + 0x28], 0x48
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x72
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0x41
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x6c
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x3b
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0x3b
mov word [esp + 0x14], 0x66
mov word [esp + 0x16], 0x11b
mov word [esp + 0x18], 0x1d0
mov word [esp + 0x1a], 0x285
call ebp
cdq
mov ecx, 3
mov dword [esp + 0x10], 0
idiv ecx
add edx, ecx
and edx, 0xffff
mov dword [esp + 0x1c], edx
jle 0x404a90
mov edi, 0xa
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push 0xb03e6
push 1
push 0x201
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push 0xb03e6
push 0
push 0x202
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
dec edi
jne 0x40475a
mov edi, 2
mov edx, dword [esi + 8]
mov eax, dword [0x4106bc]
push 0xc00c1
push 1
push 0x201
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
mov edx, dword [esi + 8]
mov eax, dword [0x4106bc]
push 0xc00c1
push 0
push 0x202
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x3e8
call dword [ecx + 0x100]
mov edx, dword [esi + 8]
mov eax, dword [0x4106bc]
push 0x650037
push 1
push 0x201
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
mov edx, dword [esi + 8]
mov eax, dword [0x4106bc]
push 0x650037
push 0
push 0x202
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x3e8
call dword [ecx + 0x100]
dec edi
jne 0x4047ae
call ebp
xor edx, edx
mov ecx, 0x14
div ecx
xor edi, edi
xor eax, eax
mov ebx, 2
and edx, 0xffff
shl edx, 3
mov di, word [esp + edx + 0x24]
mov ax, word [esp + edx + 0x20]
shl edi, 0x10
or edi, eax
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push edi
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push edi
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x7d0
call dword [eax + 0x100]
dec ebx
jne 0x40487f
mov ecx, dword [0x4106bc]
push 0x7d0
call dword [ecx + 0x100]
mov ecx, esi
call fcn.00404530
mov edi, 0xa
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push 0x11d03e9
push 1
push 0x201
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push 0x11d03e9
push 0
push 0x202
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
dec edi
jne 0x4048e6
call ebp
and eax, 7
xor edi, edi
mov di, word [esp + eax*2 + 0x14]
call ebp
cdq
mov ecx, 0x262
and edi, 0xffff
idiv ecx
mov eax, dword [0x4106bc]
add edx, 0xa
and edx, 0xffff
shl edx, 0x10
mov ebx, edx
mov edx, dword [esi + 4]
or ebx, edi
push ebx
push 1
push 0x201
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0x64
call dword [ecx + 0x100]
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push ebx
push 0
push 0x202
push edx
call dword [eax + 0x7c]
mov ecx, dword [0x4106bc]
push 0xbb8
call dword [ecx + 0x100]
mov edx, dword [esi + 4]
mov eax, dword [0x4106bc]
push edx
call dword [eax + 0x5c]
test eax, eax
je 0x404a90
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push 0xc5002c
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push 0xc5002c
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0xbb8
call dword [eax + 0x100]
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push 0xef0292
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push 0xef0292
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0xbb8
call dword [eax + 0x100]
mov ecx, dword [esi + 4]
mov edx, dword [0x4106bc]
push ecx
call dword [edx + 0x5c]
test eax, eax
je 0x404a90
mov eax, dword [0x4106bc]
push 0x3e8
call dword [eax + 0x100]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x404755
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xb0
ret 4