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

Disassembly:
sub esp, 0x9c
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, edi
call fcn.00409fb0
test eax, eax
jne 0x40a30d
mov eax, dword [0x4106bc]
push 0x3e8
call dword [eax + 0x100]
inc esi
cmp esi, 0x28
jl 0x40a2ec
cmp esi, 0x28
jne 0x40a31f
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 4
mov ecx, edi
call fcn.0040a2a0
test eax, eax
jne 0x40a335
pop edi
pop esi
add esp, 0x9c
ret 4
cmp dword [esp + 0xa8], 2
je 0x40a346
mov ecx, edi
call fcn.0040a270
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_rand]
mov eax, 0xbe
mov dword [esp + 0x44], 0xa9
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0xc6
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0xe3
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0x104
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], 0x11b
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0x134
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x14f
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0x171
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x18d
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0x1ae
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0x1cd
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0x1e8
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], 0x1fc
mov dword [esp + 0x10], 0x22
mov dword [esp + 0x14], 0x85
mov dword [esp + 0x18], 0x5b
mov dword [esp + 0x1c], 0x80
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], 0x97
mov dword [esp + 0x28], 0x26
mov dword [esp + 0x2c], 0xb5
mov dword [esp + 0x30], 0x69
mov dword [esp + 0x34], 0x96
mov dword [esp + 0x38], 0x68
mov dword [esp + 0x3c], 0x75
call ebp
and eax, 0x80000007
jns 0x40a47a
dec eax
or eax, 0xfffffff8
inc eax
add eax, 5
and eax, 0xffff
jle 0x40a5f4
push ebx
mov dword [esp + 0x10], eax
mov esi, 2
mov ecx, dword [edi + 4]
mov edx, dword [0x4106bc]
push 0x3d007a
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [edi + 4]
mov edx, dword [0x4106bc]
push 0x3d007a
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x7d0
call dword [eax + 0x100]
dec esi
jne 0x40a492
call ebp
xor edx, edx
mov ecx, 6
div ecx
xor esi, esi
xor eax, eax
mov ebx, 2
and edx, 0xffff
shl edx, 3
mov si, word [esp + edx + 0x18]
mov ax, word [esp + edx + 0x14]
shl esi, 0x10
or esi, eax
mov ecx, dword [edi + 4]
mov edx, dword [0x4106bc]
push esi
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [edi + 4]
mov edx, dword [0x4106bc]
push esi
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
dec ebx
jne 0x40a510
mov ecx, dword [0x4106bc]
push 0xbb8
call dword [ecx + 0x100]
call ebp
xor edx, edx
mov ecx, 0xd
div ecx
xor esi, esi
mov ecx, dword [edi + 4]
xor eax, eax
and edx, 0xffff
shl edx, 3
mov si, word [esp + edx + 0x48]
mov ax, word [esp + edx + 0x44]
mov edx, dword [0x4106bc]
shl esi, 0x10
or esi, eax
push esi
push 1
push 0x201
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [edi + 4]
mov edx, dword [0x4106bc]
push esi
push 0
push 0x202
push ecx
call dword [edx + 0x7c]
mov eax, dword [0x4106bc]
push 0x64
call dword [eax + 0x100]
mov ecx, dword [0x4106bc]
push 0x7d0
call dword [ecx + 0x100]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40a48d
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret 4