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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.00415ef0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x78]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x120387f8
mov eax, dword [ebp - 0x4c]
mov ecx, eax
sub ecx, 0x7043ae4b
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ecx
jg 0x40a80e
jmp 0x40a654
mov eax, dword [ebp - 0x50]
sub eax, 0xafb725f9
mov dword [ebp - 0x58], eax
jg 0x40a680
jmp 0x40a66a
mov eax, dword [ebp - 0x50]
sub eax, 0x8544ebaa
mov dword [ebp - 0x5c], eax
je 0x40a8a1
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0xc09b231a
mov dword [ebp - 0x60], eax
jg 0x40a6ac
jmp 0x40a696
mov eax, dword [ebp - 0x50]
sub eax, 0xafb725fa
mov dword [ebp - 0x64], eax
je 0x40a87f
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0xd05a64f9
mov dword [ebp - 0x68], eax
jg 0x40a6d8
jmp 0x40a6c2
mov eax, dword [ebp - 0x50]
sub eax, 0xc09b231b
mov dword [ebp - 0x6c], eax
je 0x40aaca
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0xe39fe072
mov dword [ebp - 0x70], eax
jg 0x40a704
jmp 0x40a6ee
mov eax, dword [ebp - 0x50]
sub eax, 0xd05a64fa
mov dword [ebp - 0x74], eax
je 0x40a95e
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0xee5bb711
mov dword [ebp - 0x78], eax
jg 0x40a730
jmp 0x40a71a
mov eax, dword [ebp - 0x50]
sub eax, 0xe39fe073
mov dword [ebp - 0x7c], eax
je 0x40aaa4
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0xfb50c9b1
mov dword [ebp - 0x80], eax
jg 0x40a75f
jmp 0x40a746
mov eax, dword [ebp - 0x50]
sub eax, 0xee5bb712
mov dword [ebp - 0x84], eax
je 0x40a847
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0x120387f7
mov dword [ebp - 0x88], eax
jg 0x40a791
jmp 0x40a778
mov eax, dword [ebp - 0x50]
sub eax, 0xfb50c9b2
mov dword [ebp - 0x8c], eax
je 0x40aab0
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0x3065d052
mov dword [ebp - 0x90], eax
jg 0x40a7c3
jmp 0x40a7aa
mov eax, dword [ebp - 0x50]
sub eax, 0x120387f8
mov dword [ebp - 0x94], eax
je 0x40a82c
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0x3065d053
mov dword [ebp - 0x98], eax
je 0x40aabe
jmp 0x40a7dc
mov eax, dword [ebp - 0x50]
sub eax, 0x3d14ea7a
mov dword [ebp - 0x9c], eax
je 0x40a9f4
jmp 0x40a7f5
mov eax, dword [ebp - 0x50]
sub eax, 0x3fab9db0
mov dword [ebp - 0xa0], eax
je 0x40a952
jmp 0x40a827
mov eax, dword [ebp - 0x50]
sub eax, 0x7043ae4c
mov dword [ebp - 0xa4], eax
je 0x40a8fc
jmp 0x40a827
jmp 0x40aaec
mov eax, 0xfb50c9b2
mov ecx, 0xee5bb712
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x40]
cmovb eax, ecx
mov dword [ebp - 0x4c], eax
jmp 0x40aaec
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00409da0
mov ecx, 0x8544ebaa
mov edx, 0xafb725fa
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
cmove ecx, edx
mov dword [ebp - 0x4c], ecx
jmp 0x40aaec
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x34]
movzx ecx, word [edx + ecx*2]
mov edx, dword [ebp - 0x30]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], 0xfb50c9b2
jmp 0x40aaec
mov eax, 0x3065d053
mov ecx, 0x7043ae4c
mov edx, dword [0x4f2504]
mov esi, dword [0x4f2500]
mov edi, edx
add edi, 0xcb268cf7
sub edi, 1
sub edi, 0xcb268cf7
imul edx, edi
and edx, 1
cmp edx, 0
sete bl
cmp esi, 0xa
setl bh
mov dl, bl
and dl, bh
xor bl, bh
or dl, bl
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
jmp 0x40aaec
mov eax, 0x3065d053
mov ecx, 0x3fab9db0
mov edx, 0
mov esi, dword [0x4f2504]
mov edi, dword [0x4f2500]
sub edx, 1
mov ebx, esi
add ebx, edx
imul esi, ebx
and esi, 1
cmp esi, 0
sete dl
cmp edi, 0xa
setl dh
mov bl, dl
and bl, dh
xor dl, dh
or bl, dl
test bl, 1
cmovne eax, ecx
mov dword [ebp - 0x4c], eax
jmp 0x40aaec
mov dword [ebp - 0x4c], 0xd05a64fa
jmp 0x40aaec
mov eax, 0xc09b231b
mov ecx, 0x3d14ea7a
mov dl, 1
mov esi, dword [0x4f2504]
mov edi, dword [0x4f2500]
mov ebx, esi
sub ebx, 0x88b1c5de
sub ebx, 1
add ebx, 0x88b1c5de
imul esi, ebx
and esi, 1
cmp esi, 0
sete dh
cmp edi, 0xa
setl bl
mov bh, dh
xor bh, 1
mov dword [ebp - 0xa8], eax
mov al, bl
xor al, 1
xor dl, 0
mov ah, bh
and ah, 0
and dh, dl
mov byte [ebp - 0xa9], al
and al, 0
and bl, dl
or ah, dh
or al, bl
xor ah, al
mov al, byte [ebp - 0xa9]
or bh, al
xor bh, 1
or dl, 0
and bh, dl
or ah, bh
test ah, 1
mov esi, dword [ebp - 0xa8]
cmovne esi, ecx
mov dword [ebp - 0x4c], esi
jmp 0x40aaec
mov eax, 0xc09b231b
mov ecx, 0xe39fe073
mov dl, 1
mov esi, 0
mov edi, dword [ebp - 0x48]
mov ebx, esi
sub ebx, 1
sub edi, ebx
mov dword [ebp - 0x48], edi
mov edi, dword [0x4f2504]
mov ebx, dword [0x4f2500]
sub esi, 1
mov dword [ebp - 0xb0], eax
mov eax, edi
add eax, esi
imul edi, eax
and edi, 1
cmp edi, 0
sete dh
cmp ebx, 0xa
setl al
mov ah, dh
xor ah, 1
mov bl, al
xor bl, 1
xor dl, 0
mov bh, ah
and bh, 0
and dh, dl
mov byte [ebp - 0xb1], al
mov al, bl
and al, 0
mov byte [ebp - 0xb2], al
mov al, byte [ebp - 0xb1]
and al, dl
or bh, dh
mov dh, byte [ebp - 0xb2]
or dh, al
xor bh, dh
or ah, bl
xor ah, 1
or dl, 0
and ah, dl
or bh, ah
test bh, 1
mov esi, dword [ebp - 0xb0]
cmovne esi, ecx
mov dword [ebp - 0x4c], esi
jmp 0x40aaec
mov dword [ebp - 0x4c], 0x120387f8
jmp 0x40aaec
mov eax, dword [ebp - 0x10]
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x4c], 0x7043ae4c
jmp 0x40aaec
mov eax, 0
mov ecx, dword [ebp - 0x48]
mov edx, eax
sub edx, ecx
mov ecx, eax
sub ecx, 1
add edx, ecx
sub eax, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], 0x3d14ea7a
jmp 0x40a638