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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x50a350
sub esp, 0xa4
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
lea eax, [0x79e6d8]
mov dword [esp], eax
call fcn.0044cb50
lea eax, [0x79e6d8]
mov dword [esp + 8], eax
mov dword [esp], 4
lea eax, [0x609f08]
mov dword [esp + 4], eax
call fcn.004245e0
test eax, eax
jne 0x50a2ad
mov eax, dword [esp + 0xac]
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
call fcn.00509970
mov eax, dword [esp + 8]
test eax, eax
jne 0x50a283
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xc], ecx
call fcn.00509270
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x50a25d
mov eax, dword [ebx + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
lea ecx, [0x5dd380]
mov dword [esp], ecx
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov edx, dword [esp + 0xa8]
mov ebx, dword [edx + 0x14]
test ebx, ebx
jne 0x50a010
test ecx, ecx
jne 0x509fe6
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0xac]
mov ebx, dword [eax + 0x50]
mov ebp, dword [esp + 0xb0]
mov dword [esp], ebp
call ebx
mov eax, dword [esp + 4]
cmp eax, 0x15
ja 0x509ea9
cmp eax, 0x11
je 0x509e31
cmp eax, 0x15
je 0x509db5
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ecx
call fcn.00405cb0
mov eax, dword [esp]
mov dword [esp + 0x38], eax
lea ecx, [0x78d6d0]
mov dword [esp], ecx
call fcn.00401070
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x5ce6e0]
cmp edx, ecx
jne 0x509dae
mov dword [esp + 0x3c], eax
lea edi, [esp + 0x74]
xor eax, eax
call fcn.004485c4
mov dword [esp], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x74]
mov dword [esp + 8], ecx
call fcn.00406c40
jmp 0x509c9d
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.00406f20
mov eax, dword [esp + 0x74]
test eax, eax
je 0x509d04
mov ecx, dword [esp + 0x78]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
lea eax, [0x5ce6e0]
mov dword [esp], eax
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
lea ebx, [esp + 0x6c]
mov dword [esp + 8], ebx
call fcn.00406470
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x509cf2
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
jmp 0x509c91
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x509c91
mov eax, dword [esp + 0xac]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x68], eax
lea eax, [0x5ce6e0]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
lea edx, [esp + 0x64]
mov dword [esp + 8], edx
call fcn.00406470
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x509d9c
mov ecx, dword [esp + 0x40]
mov dword [eax], ecx
lea eax, [0x78d6d0]
mov dword [esp], eax
lea eax, [0x5ce6e0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call fcn.00401100
mov eax, dword [esp + 0x40]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
nop
call fcn.00424e00
add esp, 0xa4
ret
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x509d4e
xor eax, eax
jmp 0x509c68
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x69a420]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jne 0x50a2f6
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 0x14]
mov ebx, dword [0x79e7b0]
lea ebp, [eax + 0xc]
test ebx, ebx
jne 0x509dfc
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov dword [ecx + 0x14], eax
jmp 0x509c1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
mov dword [esp], ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x40]
jmp 0x509c1c
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x69a3a0]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jne 0x50a314
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 0x14]
mov ebx, dword [0x79e7b0]
test ebx, ebx
jne 0x509e74
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov dword [ecx + 0x14], eax
jmp 0x509c1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x40]
jmp 0x509c1c
cmp eax, 0x17
je 0x509f37
cmp eax, 0x19
jne 0x509c1c
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x69a4a0]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jne 0x50a2ba
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 0x14]
mov ebx, dword [0x79e7b0]
lea ebp, [eax + 8]
test ebx, ebx
jne 0x509f02
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov dword [ecx + 0x14], eax
jmp 0x509c1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], edx
mov dword [esp], ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x40]
jmp 0x509c1c
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
cmp eax, 8
je 0x509c1c
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x69a460]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jne 0x50a2d8
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 0x14]
mov ebx, dword [0x79e7b0]
lea ebp, [eax + 4]
test ebx, ebx
jne 0x509fb1
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov dword [ecx + 0x14], eax
jmp 0x509c1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], edx
mov dword [esp], ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x40]
jmp 0x509c1c
lea eax, [0x5ce4e0]
mov dword [esp], eax
mov eax, dword [0x78cfb8]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00407fa0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
jmp 0x509bdf
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0xb0]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x10], ecx
call fcn.005092f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x50a237
mov eax, dword [ebx + 0x10]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
test eax, eax
jne 0x50a20d
xor eax, eax
xor ecx, ecx
lea edx, [0x69a3e0]
cmp edx, eax
jne 0x50a332
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0x14]
cmp edx, 1
je 0x50a19f
cmp edx, 2
je 0x50a131
cmp edx, 3
je 0x50a0c6
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, edx
jmp 0x509c2a
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 0x40]
lea ecx, [eax + 0x14]
mov edx, dword [0x79e7b0]
mov ebx, dword [esp + 4]
lea ebp, [ebx + 0x18]
test edx, edx
jne 0x50a0ff
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x18], ecx
mov dword [eax + 0x14], ebx
mov eax, dword [esp + 0xa8]
jmp 0x50a0ba
mov dword [esp + 0x60], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x40]
jmp 0x50a0f6
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 0x40]
lea ecx, [eax + 0x14]
mov edx, dword [0x79e7b0]
mov ebx, dword [esp + 4]
lea ebp, [ebx + 0x14]
test edx, edx
jne 0x50a16d
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x14], ecx
mov dword [eax + 0x14], ebx
mov eax, dword [esp + 0xa8]
jmp 0x50a0ba
mov dword [esp + 0x60], ebx
mov dword [esp + 0x48], ecx
mov dword [esp], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x40]
jmp 0x50a161
lea eax, [0x5e24e0]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 0x40]
lea ecx, [eax + 0x14]
mov edx, dword [esp + 4]
mov ebx, dword [0x79e7b0]
lea ebp, [edx + 0x10]
test ebx, ebx
jne 0x50a1db
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0xa8]
jmp 0x50a0ba
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], ecx
mov dword [esp], ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x40]
jmp 0x50a1cf
lea ecx, [0x5ce4e0]
mov dword [esp], ecx
mov ecx, dword [0x78cfb8]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407fa0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x50a08b
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
nop
call fcn.00424e00
add esp, 0xa4
ret
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
nop
call fcn.00424e00
add esp, 0xa4
ret
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
nop
call fcn.00424e00
add esp, 0xa4
ret
nop
call fcn.00424e00
add esp, 0xa4
ret
mov dword [esp], edx
lea eax, [0x5e0460]
mov dword [esp + 4], eax
lea eax, [0x5dc5a0]
mov dword [esp + 8], eax
call fcn.0040a750
ud2
mov dword [esp], edx
lea eax, [0x5e1c20]
mov dword [esp + 4], eax
lea eax, [0x5dc5a0]
mov dword [esp + 8], eax
call fcn.0040a750
ud2
mov dword [esp], edx
lea eax, [0x5e1b80]
mov dword [esp + 4], eax
lea eax, [0x5dc5a0]
mov dword [esp + 8], eax
call fcn.0040a750
ud2
mov dword [esp], edx
lea eax, [0x5e1a40]
mov dword [esp + 4], eax
lea eax, [0x5dc5a0]
mov dword [esp + 8], eax
call fcn.0040a750
ud2
mov dword [esp], eax
lea eax, [0x5e03c0]
mov dword [esp + 4], eax
lea eax, [0x5dc5a0]
mov dword [esp + 8], eax
call fcn.0040a750
ud2
call fcn.00446b60
jmp fcn.00509aa0