Function at 0x502030
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 0x502ccb
sub esp, 0x100
mov eax, dword [esp + 0x11c]
test eax, eax
jne 0x502132
mov eax, dword [0x7bcc30]
mov ecx, dword [0x7bcc34]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
lea edx, [0x609620]
mov dword [esp], edx
call fcn.0040bdb0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x7e34c0]
test eax, eax
jne 0x5020b4
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x5020c0
mov eax, dword [esp + 0xb0]
call fcn.00463860
mov dword [edi + 0xc], 0
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5020dd
mov eax, dword [esp + 0x118]
mov dword [edi + 8], eax
jmp 0x5020f2
lea ecx, [edi + 8]
mov eax, dword [esp + 0x118]
mov edx, edi
mov edi, ecx
call fcn.00463860
mov edi, edx
mov byte [edi + 0x1a], 1
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
lea eax, [0x674b1c]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], edi
add esp, 0x100
ret
mov ecx, dword [esp + 0x118]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004fea10
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x502a8a
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
lea ebx, [0x5f3040]
mov dword [esp + 4], ebx
lea ebx, [0x7e32a4]
mov dword [esp + 8], ebx
call ecx
mov eax, dword [esp + 0x10]
lea ecx, [0x5e5de0]
cmp dword [esp + 0xc], ecx
je 0x50219d
xor eax, eax
mov dword [esp + 0x64], eax
test eax, eax
je 0x5021c4
mov edx, dword [eax]
test edx, edx
je 0x5021c4
mov eax, dword [edx]
mov ecx, dword [esp + 0x118]
mov dword [esp], ecx
mov ebx, dword [esp + 0x11c]
mov dword [esp + 4], ebx
call eax
lea eax, [0x5f6920]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [esp + 0xac], eax
lea ecx, [0x50f900]
mov dword [eax], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5021fb
mov ecx, dword [esp + 0x104]
mov dword [eax + 4], ecx
jmp 0x50220a
lea edi, [eax + 4]
mov eax, dword [esp + 0x104]
call fcn.00463860
mov eax, dword [esp + 0x108]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x10c]
mov dword [esp], edx
lea ebx, [0x5f3000]
mov dword [esp + 4], ebx
lea ebx, [0x7e32a4]
mov dword [esp + 8], ebx
call ecx
mov eax, dword [esp + 0x10]
lea ecx, [0x5f1760]
cmp dword [esp + 0xc], ecx
je 0x502246
xor eax, eax
test eax, eax
jne 0x502251
mov eax, dword [esp + 0xac]
mov dword [esp + 0x68], eax
mov ecx, dword [0x7bb9bc]
mov dword [esp + 0xa8], ecx
lea edx, [0x6096c0]
mov dword [esp], edx
call fcn.0040bdb0
mov eax, dword [esp + 4]
lea ecx, [0x67537c]
mov dword [eax], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x502292
mov ecx, dword [esp + 0xa8]
mov dword [eax + 4], ecx
jmp 0x5022a5
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0xa8]
call fcn.00463860
mov eax, ecx
mov ecx, dword [esp + 0x108]
mov dword [eax + 8], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5022c5
mov ecx, dword [esp + 0x10c]
mov dword [eax + 0xc], ecx
jmp 0x5022d8
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x10c]
call fcn.00463860
mov eax, ecx
lea ecx, [0x67541c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e2520
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0xb0], edx
mov dword [esp], 0
mov ebx, dword [esp + 0x110]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x114]
mov dword [esp + 8], ebp
lea esi, [0x674388]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x118]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x18], edi
call fcn.0044dde0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea edx, [0x7e3460]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.0046c470
mov eax, dword [esp + 0x104]
test eax, eax
je 0x502385
lea ecx, [eax + 8]
jmp 0x502390
mov edx, dword [0x7b6f98]
test byte [edx], al
lea ecx, [edx + 8]
mov dword [esp + 0x5c], ecx
lea eax, [0x603780]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
lea ecx, [0x502d80]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb0]
mov dword [eax + 4], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5023d2
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
jmp 0x5023ee
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x70]
call fcn.00463860
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x68]
call fcn.00463860
mov eax, ecx
mov ecx, dword [esp + 0x114]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x50240e
mov ecx, dword [esp + 0x110]
mov dword [eax + 0x10], ecx
jmp 0x502421
lea edi, [eax + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x110]
call fcn.00463860
mov eax, ecx
mov ecx, dword [esp + 0x11c]
mov dword [eax + 0x1c], ecx
mov edx, dword [0x7e34c0]
test edx, edx
jne 0x502441
mov edx, dword [esp + 0x118]
mov dword [eax + 0x18], edx
jmp 0x502454
lea edi, [eax + 0x18]
mov edx, eax
mov eax, dword [esp + 0x118]
call fcn.00463860
mov eax, edx
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
call fcn.004edf30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov ecx, dword [esp + 0x108]
mov edx, dword [ecx + 0x14]
mov ebx, dword [esp + 0x10c]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov dword [esp + 0xa4], eax
lea edi, [esp + 0xec]
xor eax, eax
call fcn.00463a8b
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xb4], eax
lea ecx, [esp + 0xec]
mov dword [esp + 0xb8], ecx
lea edx, [esp + 0xb4]
mov dword [esp], edx
lea edx, [esp + 0x54]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00446f00
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x502746
lea edi, [esp + 0xd8]
lea esi, [esp + 0xec]
call fcn.00463f6e
lea eax, [0x7e3460]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call fcn.0046c470
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
test eax, eax
je 0x5026c9
lea edx, [0x674b1c]
cmp eax, edx
jne 0x5025a0
mov edx, dword [esp + 0x64]
test edx, edx
jmp 0x5026cf
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x40], eax
mov edx, dword [0x7b7394]
cmp dword [0x7b7390], eax
jne 0x5025de
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403850
movzx eax, byte [esp + 0xc]
test al, al
je 0x5025d6
mov eax, 1
jmp 0x502611
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
lea edx, [0x5f6860]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409900
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x502604
xor eax, eax
jmp 0x502611
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
mov byte [esp + 0x27], al
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 0x7c]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
lea edx, [0x609620]
mov dword [esp], edx
call fcn.0040bdb0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x7e34c0]
test eax, eax
jne 0x502666
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x502672
mov eax, dword [esp + 0xb0]
call fcn.00463860
mov ecx, dword [esp + 0x11c]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x502698
mov eax, dword [esp + 0x118]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x64]
test eax, eax
jmp 0x5026b5
lea ecx, [edi + 8]
mov eax, dword [esp + 0x118]
mov edx, edi
mov edi, ecx
call fcn.00463860
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov eax, ecx
mov edi, edx
movzx edx, byte [esp + 0x27]
mov byte [edi + 0x18], dl
mov edx, eax
lea eax, [0x674b1c]
mov ecx, edi
jmp 0x5026cf
mov edx, dword [esp + 0x64]
test edx, edx
je 0x502b3f
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x502b3f
mov dword [esp + 0x4c], eax
mov dword [esp + 0xa0], ecx
mov ebx, dword [esp + 0xdc]
lea ebp, [0x5e9fe0]
cmp dword [esp + 0xd8], ebp
jne 0x502708
mov esi, dword [ebx]
mov ebx, dword [ebx + 4]
jmp 0x50270c
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x90], esi
lea eax, [0x5f0700]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044a1a0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x90]
xor edx, edx
jmp 0x502bfc
mov eax, dword [esp + 0x104]
test eax, eax
je 0x502756
add eax, 8
jmp 0x502761
mov ecx, dword [0x7b6f98]
test byte [ecx], al
lea eax, [ecx + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
call fcn.004ee3f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5027e9
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
call eax
lea eax, [0x5ff620]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
lea ecx, [0x502d30]
mov dword [eax], ecx
lea ecx, [0x63448c]
mov dword [eax + 4], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5027c3
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
jmp 0x5027d6
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.00463860
mov eax, ecx
lea ecx, [0x634490]
mov dword [eax + 0xc], ecx
mov dword [esp], eax
call fcn.00440dc0
jmp 0x502850
lea eax, [0x5ff680]
mov dword [esp], eax
call fcn.0040bdb0
mov eax, dword [esp + 4]
lea ecx, [0x502ce0]
mov dword [eax], ecx
lea ecx, [0x63448c]
mov dword [eax + 4], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x502829
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0xc], ecx
jmp 0x502848
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.00463860
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x74]
call fcn.00463860
mov eax, ecx
mov dword [esp], eax
call fcn.00440dc0
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 + 4]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x98], edx
mov ebx, dword [0x7bc944]
mov ebp, dword [esp + 8]
mov dword [esp + 0x84], ebp
cmp dword [0x7bc940], edx
jne 0x5028dd
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403850
movzx eax, byte [esp + 0xc]
test al, al
je 0x5028c4
lea eax, [0x674dd8]
lea ecx, [0x7e32a4]
jmp 0x50292b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x84]
mov ebx, dword [0x7b7394]
cmp dword [0x7b7390], edx
jne 0x50292b
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403850
movzx eax, byte [esp + 0xc]
test al, al
je 0x502912
mov eax, dword [0x7b7470]
mov ecx, dword [0x7b7474]
jmp 0x50292b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x84]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x50], ecx
lea edx, [0x609620]
mov dword [esp], edx
call fcn.0040bdb0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x7e34c0]
test eax, eax
jne 0x502974
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x502980
mov eax, dword [esp + 0xb0]
call fcn.00463860
mov ecx, dword [esp + 0x11c]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5029a0
mov eax, dword [esp + 0x118]
mov dword [edi + 8], eax
jmp 0x5029b5
lea ecx, [edi + 8]
mov eax, dword [esp + 0x118]
mov edx, edi
mov edi, ecx
call fcn.00463860
mov edi, edx
mov dword [esp + 0x80], edi
mov eax, dword [0x7b7394]
mov ecx, dword [esp + 0x98]
cmp dword [0x7b7390], ecx
je 0x5029de
mov eax, dword [esp + 0x64]
test eax, eax
mov ecx, 0
jmp 0x502a0d
mov dword [esp], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00403850
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x64]
test ecx, ecx
mov edi, dword [esp + 0x80]
mov edx, eax
mov eax, ecx
mov ecx, edx
mov byte [edi + 0x18], cl
je 0x502a4e
mov edx, dword [eax + 4]
test edx, edx
je 0x502a4e
mov eax, dword [edx]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [esp + 0xc], 0
lea ecx, [0x674b1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
call eax
mov edi, dword [esp + 0x80]
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
lea eax, [0x674b1c]
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], edi
add esp, 0x100
ret
mov dword [esp + 0x78], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], ebx
lea eax, [0x5ed000]
mov dword [esp], eax
call fcn.0040bdb0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 8], eax
mov eax, dword [0x7e34c0]
test eax, eax
jne 0x502ad0
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
jmp 0x502ad9
mov eax, dword [esp + 0x78]
call fcn.00463860
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x502af3
mov eax, dword [esp + 0x60]
mov dword [edi + 0xc], eax
jmp 0x502b05
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x60]
mov edx, edi
mov edi, ecx
call fcn.00463860
mov edi, edx
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], 1
mov dword [esp + 0x128], 1
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
add esp, 0x100
ret
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd8]
movzx ebp, byte [esp + 0xe8]
test eax, eax
je 0x502b65
xor edx, edx
mov ebx, eax
mov ebp, ecx
xor ecx, ecx
xor eax, eax
jmp 0x502ba9
lea eax, [0x5e9fe0]
cmp ebx, eax
jne 0x502bd3
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov edx, dword [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x502ba5
mov dword [esp + 0x28], eax
lea edx, [0x5fbd80]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.0044a050
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ebp
add esp, 0x100
ret
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [0x5f0700]
mov dword [esp + 8], eax
call fcn.00409340
mov ebp, dword [esp + 0x94]
add ebp, 0x14
mov eax, ebx
lea ebx, [esi + 1]
mov edx, ebx
mov ecx, ebp
mov ebx, dword [esp + 0x48]
cmp edx, ebx
jge 0x502c7a
mov dword [esp + 0x3c], edx
mov dword [esp + 0x94], ecx
lea edi, [esp + 0xc4]
mov esi, ecx
call fcn.00463f6e
lea eax, [0x5fbd80]
mov dword [esp], eax
lea ecx, [esp + 0xc4]
mov dword [esp + 4], ecx
call fcn.004094a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
cmp ecx, edx
jae 0x502cc1
mov ebx, dword [esp + 0x9c]
lea ebp, [ebx + ecx*8]
mov esi, ecx
lea ecx, [0x5fbd80]
mov dword [ebp], ecx
mov ebp, dword [0x7e34c0]
lea edi, [ebx + esi*8 + 4]
test ebp, ebp
jne 0x502c70
mov dword [edi], eax
jmp 0x502be9
call fcn.00463860
jmp 0x502be9
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
movzx ebp, byte [esp + 0xe8]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
xchg ebp, eax
mov byte [esp + 0xc], al
xchg ebp, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x14], ebx
call ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa0]
jmp 0x502b3f
mov eax, ecx
mov ecx, edx
call fcn.004638e0
nop
call fcn.00462450
jmp fcn.00502030