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

Disassembly:
cmp word [0x5b52a9], 0
jne 0x412570
xor eax, eax
ret 0x10
push ebp
mov ebp, ecx
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0xac
cmp word [ecx + 0x6cf], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
jle 0x4125fa
mov eax, dword [ebp + 0x685]
movsx eax, word [eax + ebx*2]
test eax, eax
jle 0x412c28
cmp eax, dword [0x5b504c]
jg 0x412c28
sub eax, 1
imul eax, dword [0x5b5050]
mov edx, dword [0x5b5059]
mov ecx, dword [edx + eax]
mov eax, dword [ecx]
call dword [eax + 0x7c]
movzx eax, word [eax + 0xfe]
sub eax, 1
cmp ax, 2
ja 0x4125ec
cwde
add dword [esp + eax*4 + 0x70], 1
movsx eax, word [ebp + 0x6cf]
add ebx, 1
cmp eax, ebx
jg 0x4125a0
mov dword [esp], 6
mov ecx, 0x5b62e0
call fcn.00438280
mov edi, dword [0x5b528c]
xor edx, edx
sub esp, 4
mov dword [esp + 0x44], eax
xor eax, eax
mov word [esp + 0x68], ax
xor eax, eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6a], 0
mov word [esp + 0x6e], ax
mov dword [esp + 0x88], 0x7fffff
mov dword [esp + 0x8c], 0x7fffff
mov dword [esp + 0x90], 0x7fffff
test edi, edi
jle 0x4129c9
mov dword [esp + 0x3c], ebp
jmp 0x4126ba
mov edi, esi
test esi, esi
je 0x4129c1
mov dword [esp], edi
mov ecx, 0x5b5280
lea esi, [edi - 1]
call fcn.004d2be0
sub esp, 4
test eax, eax
jne 0x4126b0
cmp dword [0x5b528c], edi
jl 0x412c1f
mov eax, dword [0x5b5290]
lea esi, [edi - 1]
imul eax, esi
add eax, dword [0x5b5299]
cmp byte [eax + 2], 1
mov ebp, eax
jne 0x4126b0
movsx eax, word [eax + 0xc]
imul eax, dword [0x59ad30]
movsx edx, word [ebp + 0xa]
add eax, edx
imul eax, eax, 0xe
add eax, dword [0x5b39d0]
cmp word [eax + 4], 0
mov dword [esp + 0x34], eax
jne 0x4126b0
movzx eax, word [eax]
test al, 1
je 0x4126b0
test ah, 0xf
jne 0x4126b0
mov ecx, dword [esp + 0x34]
call fcn.00498fd0
test eax, eax
jne 0x4126b0
movsx eax, word [ebp + 3]
lea ebx, [eax - 1]
mov eax, dword [esp + eax*4 + 0x90]
mov dword [esp + 0x40], ebx
test eax, eax
jne 0x4126b0
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 6
mov ecx, ebx
mov dword [esp + 0x10], 1
movsx eax, word [ebp + 0xc]
mov dword [esp + 0xc], eax
movsx eax, word [ebp + 0xa]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
call fcn.00403e70
sub esp, 0x20
test eax, eax
jne 0x4126b0
cmp word [ebx + 0x6cb], 0
mov dword [esp + 0x30], 0
jle 0x412994
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x54], edi
jmp 0x4127e8
add dword [esp + 0x30], 1
movsx eax, word [esi + 0x6cb]
mov edx, dword [esp + 0x30]
cmp eax, edx
jle 0x412990
mov eax, dword [esi + 0x67d]
mov edx, dword [esp + 0x30]
movsx eax, word [eax + edx*2]
test eax, eax
jle 0x412c16
cmp eax, dword [0x5b522c]
jg 0x412c16
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov ecx, dword [0x59ad30]
mov edi, dword [esp + 0x34]
mov ebx, dword [edx + eax]
movsx edx, word [ebx + 0x15]
movsx eax, word [ebx + 0x13]
imul ecx, edx
add ecx, eax
imul ecx, ecx, 0xe
add ecx, dword [0x5b39d0]
movzx ecx, byte [ecx + 0xc]
cmp byte [edi + 0xc], cl
jne 0x4127d0
mov ecx, dword [esp + 0x48]
movsx edi, word [ecx + 0xc]
movsx ecx, word [ecx + 0xa]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
movsx ebp, word [ebx + 0x19]
mov dword [esp + 0x1c], ebp
movsx ebp, word [ebx + 0x17]
mov dword [esp + 0x14], edx
mov dword [esp + 8], ecx
mov dword [esp], ecx
mov ecx, 0x5ba360
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], edi
call fcn.00499d90
movsx edx, word [ebx + 0x298]
sub esp, 0x28
mov dword [esp + 0x4c], eax
sub edx, 1
js 0x412b08
mov edi, dword [0x5b5050]
mov ecx, dword [0x5b504c]
mov ebp, dword [0x5b5059]
mov dword [esp + 0x38], edi
jmp 0x4128d1
sub edx, 1
jb 0x412b08
movsx eax, word [ebx + edx*2 + 0x29c]
test eax, eax
jle 0x412c4c
cmp eax, ecx
jg 0x412c4c
sub eax, 1
imul eax, dword [esp + 0x38]
movzx edi, word [esi + 4]
mov eax, dword [ebp + eax]
cmp word [eax + 0xf], di
jne 0x4128c8
cmp byte [eax + 4], 6
jne 0x4128c8
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
movsx eax, dx
mov dword [esp + 0x38], eax
cmp eax, dword [esp + ecx*4 + 0x88]
jl 0x412927
cmp dx, 8
jg 0x4127d0
mov dword [esp + 0x5c], 1
mov eax, dword [esp + 0x48]
movsx edx, word [eax + 0xa]
mov eax, dword [esp + 0x44]
movsx eax, word [eax + 0x48]
mov edi, edx
sub edi, eax
add edi, 1
cmp edx, edi
jl 0x4127d0
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x48]
add edi, 1
mov eax, dword [0x59ad30]
mov ebp, edi
sub ebp, 1
js 0x41297b
cmp eax, ebp
jg 0x412a90
cmp edi, edx
jg 0x41297f
add edi, 1
mov ebp, edi
sub ebp, 1
jns 0x412965
cmp edx, edi
jge 0x412971
mov esi, dword [esp + 0x58]
jmp 0x4127d0
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x94]
test ebx, ebx
je 0x4126b0
mov edx, dword [esp + 0x98]
test edx, edx
je 0x4126b0
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4126b0
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x30], 0x7fffff
xor edi, edi
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x34], 0x7fffff
mov esi, 0xffffffff
test edx, edx
je 0x412a08
mov ebx, dword [esp + eax*4 + 0x70]
test ebx, ebx
jne 0x412a20
mov ebx, dword [esp + eax*4 + 0x88]
test edi, edi
je 0x412a68
cmp ebx, dword [esp + 0x30]
jl 0x412a80
lea esi, [esi]
add eax, 1
cmp eax, 3
je 0x412a40
mov edx, dword [esp + eax*4 + 0x7c]
jmp 0x4129e4
test edi, edi
jne 0x412a08
cmp ebx, dword [esp + 0x34]
jge 0x412a08
mov esi, eax
add eax, 1
mov dword [esp + 0x34], ebx
cmp eax, 3
jne 0x412a10
lea esi, [esi]
nop
test ecx, ecx
jne 0x412a4c
test esi, esi
js 0x412a4c
mov ecx, dword [esp + esi*4 + 0x7c]
xor eax, eax
test ecx, ecx
jne 0x412b30
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 0x30], ebx
mov ecx, edx
mov esi, eax
mov edi, 1
jmp 0x412a08
mov dword [esp + 0x30], ebx
mov ecx, edx
mov esi, eax
jmp 0x412a08
mov ebx, dword [esp + 0x44]
movsx eax, word [esi + 0xc]
movsx ecx, word [ebx + 0x4a]
mov ebx, eax
sub ebx, ecx
add ebx, 1
cmp eax, ebx
jl 0x412af7
lea esi, [esi]
nop
test ebx, ebx
js 0x412aec
cmp ebx, dword [0x59ad2c]
jge 0x412aec
mov dword [esp + 0xc], 0xffffffff
mov ecx, 0x5b39c8
mov dword [esp + 8], 6
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.0054c4e0
sub esp, 0x10
test eax, eax
jne 0x412bc8
movsx eax, word [esi + 0xc]
add ebx, 1
cmp eax, ebx
jge 0x412ab0
movsx edx, word [esi + 0xa]
cmp edx, edi
jge 0x412956
jmp 0x41297f
movsx eax, word [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], eax
cmp eax, dword [esp + edx*4 + 0x88]
jge 0x4127d0
mov dword [esp + 0x5c], 0
jmp 0x41292f
movzx eax, word [esp + esi*2 + 0x64]
movzx edx, word [esp + esi*2 + 0x6a]
jle 0x412c2f
cmp ecx, dword [0x5b528c]
jg 0x412c2f
mov esi, dword [esp + 0xc0]
lea ebx, [ecx - 1]
mov ecx, ebp
imul ebx, dword [0x5b5290]
add ebx, dword [0x5b5299]
mov word [esi], ax
mov eax, dword [esp + 0xc4]
mov word [eax], dx
mov eax, dword [esp + 0xc8]
movzx edx, word [ebx + 0xa]
mov word [eax], dx
mov eax, dword [esp + 0xcc]
movzx edx, word [ebx + 0xc]
mov word [eax], dx
movsx eax, word [ebx + 0xc]
mov dword [esp + 0xc], eax
movsx eax, word [ebx + 0xa]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], eax
call fcn.004123c0
movsx eax, word [ebx + 3]
sub esp, 0x10
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
cmp word [esp + 0x4c], 8
mov esi, dword [esp + 0x58]
mov dword [esp + eax*4 + 0x7c], edx
mov edx, dword [esp + 0x38]
mov word [esp + eax*2 + 0x64], bp
mov word [esp + eax*2 + 0x6a], bx
mov dword [esp + eax*4 + 0x88], edx
jg 0x4127d0
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4127d0
mov eax, dword [esp + 0x40]
add dword [esp + eax*4 + 0x94], 1
jmp 0x4127d0
movzx eax, word [0x15]
ud2
movzx eax, byte [2]
ud2
mov eax, dword [pe_dos_header]
ud2
mov esi, dword [esp + 0xc0]
mov word [esi], ax
mov eax, dword [esp + 0xc4]
mov word [eax], dx
movzx eax, word [0xa]
ud2
movzx eax, word [0xf]
ud2