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

Disassembly:
push 0xffffffffffffffff
push 0x4a5d80
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa0]
mov eax, dword [ebx]
mov dword [esp + 0x64], 0x55440101
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x80], ecx
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x84], ecx
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 8
call fcn.004a1630
push 0x2c
lea ecx, [esp + 0x68]
push ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0xa4], ebp
call fcn.004a17c0
test al, al
jne 0x4315fb
push 0x4df3b8
mov ecx, edi
call fcn.0049cc40
mov ecx, eax
call fcn.0049ccb0
lea ecx, [esp + 0x4c]
call fcn.004a15a0
xor al, al
jmp 0x43192e
call fcn.00423bd0
cmp dword [eax + 0x10], ebp
jne 0x431609
xor eax, eax
jmp 0x431612
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 8]
add eax, dword [ecx + 4]
push 4
lea edx, [esp + 0x18]
push edx
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], eax
call fcn.004a17c0
test al, al
jne 0x431632
push 0x4df3d8
jmp 0x4315dd
cmp dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jle 0x4316e1
push 2
lea eax, [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43162b
movzx esi, word [esp + 0x10]
call fcn.00423bd0
movsx ecx, si
shl ecx, 4
add ecx, dword [eax + 0x14]
lea edx, [ecx + 2]
jmp 0x431670
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x431670
sub ecx, edx
sar ecx, 1
add ecx, ecx
push 2
movzx edx, cx
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], edx
call fcn.004a17c0
test al, al
je 0x43162b
movzx esi, word [esp + 0x10]
call fcn.00423bd0
movzx edx, word [esp + 0x20]
movsx ecx, si
shl ecx, 4
add ecx, dword [eax + 0x14]
push edx
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43162b
mov eax, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x10], eax
movsx eax, ax
cmp eax, dword [esp + 0x14]
jl 0x431640
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
add esi, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x2c], esi
mov esi, dword [eax + 0xc]
add ebp, eax
add esi, eax
mov edx, eax
add ecx, eax
cmp dword [edx + 0x10], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0
jbe 0x431891
lea ebx, [ecx + 8]
jmp 0x431730
cmp dword [ebx], 0
je 0x43186e
push 4
push ebx
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
mov esi, dword [ebx - 8]
add esi, dword [esp + 0x2c]
push 2
push esi
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], esi
call fcn.004a17c0
test al, al
je 0x43190a
movsx ecx, word [esi]
push ecx
lea eax, [esi + 2]
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
cmp dword [ebx], 0
mov eax, dword [ebx - 4]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4]
mov dword [esp + 0x24], 0
jbe 0x43185a
lea ebp, [eax + 6]
mov esi, dword [ebp - 6]
add esi, dword [esp + 0x30]
push 2
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
movzx eax, word [esi]
cmp ax, 0x80
lea ecx, [esi + 2]
ja 0x431914
test ax, ax
jle 0x431914
movsx eax, ax
push eax
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
push 2
lea ecx, [ebp - 2]
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
push 2
push ebp
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
push 4
lea edx, [ebp + 2]
push edx
push edi
lea ecx, [esp + 0x58]
call fcn.004a17c0
test al, al
je 0x43190a
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 1
add eax, 1
add ebp, 0xc
cmp eax, dword [ebx]
mov dword [esp + 0x24], eax
jb 0x4317a6
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
movsx eax, word [esi]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x18], 1
lea edx, [ecx + eax + 2]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
mov eax, dword [edx + 4]
add ecx, 1
add ebx, 0xc
cmp ecx, dword [eax + 0x10]
mov dword [esp + 0x28], ecx
jb 0x431730
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push 0
push 0
push 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xb4]
push 0
mov dword [esp + 0x90], ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], edx
call fcn.0049a5c0
lea ecx, [esp + 0x3c]
push ecx
push edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xa0], 1
call fcn.004a1850
test al, al
lea ecx, [esp + 0x3c]
sete bl
mov byte [esp + 0x98], 0
call fcn.00499a80
test bl, bl
mov ecx, edi
je 0x43191e
push 0x4df434
jmp 0x4315df
push 0x4df3f8
jmp 0x4315dd
push 0x4df414
jmp 0x4315dd
call fcn.0049cbe0
lea ecx, [esp + 0x4c]
call fcn.004a15a0
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8