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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x80]
cmp eax, dword [ecx + 8]
jbe 0x50a0ea
sub esp, 0x100
mov eax, dword [esp + 0x114]
test eax, eax
jne 0x509975
mov eax, dword [0x9b8d10]
mov eax, dword [eax + 0x10]
mov ecx, dword [0x9b8d14]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x88], ecx
lea edx, [0x6f38c0]
mov dword [esp], edx
call fcn.0040e460
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [0x9cadb0]
test ecx, ecx
jne 0x509956
mov ecx, dword [esp + 0x88]
mov dword [eax], ecx
mov ecx, dword [esp + 0x114]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x9cadb0]
lea edx, [eax + 8]
test ecx, ecx
jne 0x50993a
mov ecx, dword [esp + 0x110]
mov dword [eax + 8], ecx
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
lea ecx, [0x79b780]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], eax
add esp, 0x100
ret
mov dword [esp], edx
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x84]
jmp 0x5098fe
mov dword [esp], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 4], ecx
call fcn.0040ecd0
mov eax, dword [esp + 0x84]
jmp 0x5098dd
mov ecx, dword [esp + 0x110]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00506630
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test edx, edx
je 0x509a32
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x58], edx
lea eax, [0x6c0ce0]
mov dword [esp], eax
call fcn.0040e460
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x9cadb0]
test ecx, ecx
jne 0x509a12
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], 1
mov dword [esp + 0x120], 1
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
add esp, 0x100
ret
mov dword [esp + 0x80], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.0040ecd0
mov eax, dword [esp + 0x80]
jmp 0x5099d8
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x1c]
lea edx, [0x6cf680]
mov dword [esp + 4], edx
lea edx, [0x9cabf8]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x10c]
mov dword [esp], ebx
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [0x6ade00]
cmp edx, ecx
jne 0x50a0c9
mov dword [esp + 0x44], eax
test eax, eax
je 0x509a84
mov edx, dword [eax]
test edx, edx
jne 0x50a0ab
lea eax, [0x6d5b40]
mov dword [esp], eax
call fcn.0040e460
mov eax, dword [esp + 4]
mov dword [esp + 0x7c], eax
lea ecx, [0x5155c0]
mov dword [eax], ecx
mov ecx, dword [0x9cadb0]
lea edx, [eax + 4]
test ecx, ecx
jne 0x50a093
mov ecx, dword [esp + 0x104]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x1c]
lea edx, [0x6cf640]
mov dword [esp + 4], edx
lea edx, [0x9cabf8]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea edx, [0x6cbd20]
cmp edx, ecx
jne 0x50a08c
test eax, eax
je 0x50a083
mov dword [esp + 0x48], eax
mov ecx, dword [0x9b7f7c]
lea edx, [0x79d880]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004fb550
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x4c], edx
lea ebx, [0x9cad50]
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.00452080
lea eax, [0x6e5dc0]
mov dword [esp], eax
call fcn.0040e460
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
lea ecx, [0x5132d0]
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [0x9cadb0]
lea edx, [eax + 8]
lea ebx, [eax + 0xc]
test ecx, ecx
jne 0x50a052
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x114]
mov dword [eax + 0x14], ecx
mov edx, dword [0x9cadb0]
lea ebx, [eax + 0x10]
test edx, edx
jne 0x50a028
mov edx, dword [esp + 0x110]
mov dword [eax + 0x10], edx
lea ebx, [0x9b91c8]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004fd370
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], eax
movzx ecx, byte [esp + 0x14]
test cl, cl
je 0x50a015
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
lea edi, [esp + 0xa0]
xor eax, eax
call fcn.0044c88b
lea edi, [esp + 0xb4]
call fcn.0044c87d
lea eax, [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], 0x4c
mov dword [esp + 8], 0
mov dword [esp + 0xc], 2
call fcn.004347b0
lea eax, [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004349c0
lea eax, [esp + 0xb4]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
lea edx, [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
call fcn.004349c0
lea eax, [esp + 0xb4]
mov dword [esp], eax
call fcn.00434d00
mov eax, dword [esp + 4]
test eax, eax
je 0x509e68
cmp eax, 1
jne 0x50a0e8
lea edi, [esp + 0x8c]
lea esi, [esp + 0xa0]
call fcn.0044cd6e
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x509d60
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x509d60
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
lea ebx, [0x6b9be0]
cmp edx, ebx
jne 0x509e5d
mov edx, dword [ecx + 4]
mov ebp, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0050a100
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
movzx eax, byte [esp + 0x9c]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
movzx ebp, byte [esp + 0x9c]
test ebx, ebx
je 0x509db8
xor eax, eax
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], ebp
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], edx
add esp, 0x100
ret
lea edx, [0x6b9be0]
cmp ecx, edx
jne 0x50a0d0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x509de0
xor ebx, ebx
mov ebp, eax
mov eax, ecx
mov ecx, edx
xor edx, edx
jmp 0x509d8e
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea eax, [0x6dff40]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.00439020
mov eax, dword [esp + 0xc]
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ebx, [0x6dff40]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.0040f030
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
jmp 0x509dd4
xor edx, edx
xor ecx, ecx
xor ebp, ebp
jmp 0x509d0c
lea eax, [0x9b91c8]
mov dword [esp], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 8], eax
call fcn.004fd800
movzx eax, byte [esp + 0xc]
test al, al
je 0x509fea
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x108]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x10c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], ecx
mov edx, dword [0x9b8a80]
cmp edx, ecx
je 0x509fa7
mov ebx, dword [0x991610]
cmp ebx, ecx
je 0x509f5e
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x509eee
mov edx, dword [ebx + 4]
test edx, edx
jne 0x509f24
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], ecx
mov dword [esp + 0x128], eax
add esp, 0x100
ret
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ecx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp + 0xc], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
jmp 0x509eee
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0x991614]
mov dword [esp + 8], edx
call fcn.00402150
movzx eax, byte [esp + 0xc]
test al, al
je 0x509f94
mov eax, dword [0x99165c]
mov ecx, dword [0x991658]
mov ebx, dword [esp + 0x44]
test ebx, ebx
jmp 0x509ee5
mov ebx, dword [esp + 0x44]
test ebx, ebx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jmp 0x509ee5
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [0x9b8a84]
mov dword [esp + 8], edx
call fcn.00402150
movzx eax, byte [esp + 0xc]
test al, al
je 0x509fdd
mov ecx, dword [0x9b8ce8]
mov eax, dword [0x9b8cec]
mov ebx, dword [esp + 0x44]
test ebx, ebx
jmp 0x509ee5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jmp 0x509ed5
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov dword [esp], 8
lea eax, [0x74f93c]
mov dword [esp + 4], eax
call fcn.0042f310
jmp 0x509ea1
lea eax, [0x9cad50]
mov dword [esp], eax
call fcn.004521b0
jmp 0x509bea
mov dword [esp], ebx
mov eax, dword [esp + 0x110]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x110]
jmp 0x509bbb
mov dword [esp + 0x70], ebx
mov dword [esp], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call fcn.0040ecd0
mov eax, dword [esp + 0x78]
jmp 0x509b96
mov eax, dword [esp + 0x7c]
jmp 0x509b05
xor eax, eax
jmp 0x509afd
mov dword [esp], edx
mov eax, dword [esp + 0x104]
mov dword [esp + 4], eax
call fcn.0040ecd0
jmp 0x509abd
mov eax, dword [esp + 0x110]
mov dword [esp], eax
mov ecx, dword [esp + 0x114]
mov dword [esp + 4], ecx
mov ebx, dword [edx]
call ebx
jmp 0x509a84
xor eax, eax
jmp 0x509a72
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x6ca680]
mov dword [esp + 8], eax
call fcn.0040b950
ud2
ud2
call fcn.0044ae20
jmp fcn.00509850