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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x501197
sub esp, 0x6c
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x500f0b
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x500e0b
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x84]
test edx, edx
je 0x500dd0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + 0x134]
mov ebp, dword [esp + 0x88]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x500dbe
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.004f6530
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x500dac
mov eax, dword [esp + 0x70]
mov byte [eax + 0x13c], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046c630
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x500bba
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005008f0
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.005008f0
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x71e9f0]
test edx, edx
jne 0x500ba5
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x71e9f0]
test ecx, ecx
jne 0x500b98
mov dword [ebx + 0x154], eax
lea eax, [0x5c9e20]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5a2fa0]
mov dword [esp + 8], eax
lea eax, [0x5df034]
mov dword [esp + 0xc], eax
call fcn.004151b0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x6c
ret
lea edi, [ebx + 0x154]
call fcn.0045e220
jmp 0x500b58
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045e220
mov eax, edx
jmp 0x500b42
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.0046c710
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x500cc8
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005008f0
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.005008f0
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x71e9f0]
test edx, edx
jne 0x500cb3
mov edx, dword [esp + 0x50]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x71e9f0]
test ecx, ecx
jne 0x500ca6
mov dword [ebx + 0x154], eax
lea eax, [0x5c9e20]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5a2fa0]
mov dword [esp + 8], eax
lea eax, [0x5df034]
mov dword [esp + 0xc], eax
call fcn.004151b0
jmp 0x500b7e
lea edi, [ebx + 0x154]
call fcn.0045e220
jmp 0x500c7b
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x50]
call fcn.0045e220
mov eax, edx
jmp 0x500c65
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.005008f0
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
lea edx, [0x5ad340]
mov dword [esp], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
call fcn.00409350
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x71e9f0]
test edx, edx
jne 0x500d97
mov edx, dword [esp + 0x4c]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x71e9f0]
test ecx, ecx
jne 0x500d8a
mov dword [ebx + 0x154], eax
lea eax, [0x5c9e20]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5a2fa0]
mov dword [esp + 8], eax
lea eax, [0x5df034]
mov dword [esp + 0xc], eax
call fcn.004151b0
jmp 0x500b7e
lea edi, [ebx + 0x154]
call fcn.0045e220
jmp 0x500d5f
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045e220
mov eax, edx
jmp 0x500d49
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004f6410
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x500df9
mov eax, dword [esp + 0x70]
xor ebx, ebx
xor ebp, ebp
jmp 0x500a93
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 8]
test eax, eax
jne 0x500ef9
test esi, esi
jne 0x500e55
mov eax, esi
mov ecx, ebx
jmp 0x5009e8
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0046c550
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x500e8e
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
jmp 0x500e4c
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
lea eax, [0x5b14c0]
mov dword [esp], eax
call fcn.0040b910
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x5d006c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [0x71e9f0]
test ecx, ecx
jne 0x500ee7
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
lea ecx, [0x610ae0]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x6c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045e220
mov eax, ecx
jmp 0x500ecf
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
nop
lea eax, [0x5ac760]
mov dword [esp], eax
call fcn.0040b910
mov edi, dword [esp + 4]
mov eax, dword [0x71e9f0]
test eax, eax
jne 0x50117d
mov ebx, dword [esp + 0x70]
mov dword [edi], ebx
mov dword [esp + 0x60], edi
mov ebp, dword [esp + 0x84]
test ebp, ebp
jne 0x50114e
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x50111f
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], ecx
mov edx, ebp
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
cmp esi, 4
jne 0x50109b
cmp dword [ebp], 0x78696e75
jne 0x500fd7
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
mov edx, dword [esp + 0x8c]
mov ebx, dword [edx]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea eax, [0x611ab4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x5009d8
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
add esp, 0x6c
ret
mov ebp, dword [ebx + 0x144]
mov esi, dword [ebx + 0x140]
lea edi, [ebp - 1]
cmp ebp, edi
jbe 0x50118d
movzx edi, byte [ebp + esi - 1]
xchg edi, eax
cmp al, 0x34
xchg edi, eax
jne 0x50100d
mov edi, dword [esp + 0x60]
mov edi, esi
mov esi, ebp
mov ebp, edi
mov edi, dword [esp + 0x60]
jmp 0x500f89
xchg edi, eax
cmp al, 0x36
xchg edi, eax
je 0x500ffa
cmp dword [ebx + 0x134], 2
jne 0x50105c
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x60cdb9]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004486c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
jmp 0x500f89
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x60e538]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004486c0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
jmp 0x500f89
cmp esi, 8
jne 0x5010bf
cmp dword [ebp], 0x78696e75
jne 0x500fd7
cmp dword [ebp + 4], 0x6d617267
je 0x500f7d
jmp 0x500fd7
cmp esi, 0xa
jne 0x500fd7
mov dword [esp], ebp
lea eax, [0x5d12c6]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004028f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x501103
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
jmp 0x500f7d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
jmp 0x500fd7
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x60]
jmp 0x500f55
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x60]
jmp 0x500f55
mov eax, dword [esp + 0x70]
call fcn.0045e220
mov ebx, eax
jmp 0x500f32
mov eax, edi
mov ecx, ebp
call fcn.0045e2a0
nop
call fcn.0045ccc0
jmp fcn.005009b0