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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x94]
cmp eax, dword [ecx + 8]
jbe 0x502772
sub esp, 0x114
mov eax, dword [esp + 0x130]
test eax, eax
jne 0x501c25
mov eax, dword [0x8bcc60]
mov ecx, dword [0x8bcc64]
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, [0x685d20]
mov dword [esp], edx
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x8e4520]
test eax, eax
jne 0x501ba7
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x501bb3
mov eax, dword [esp + 0xb0]
call fcn.00462a70
mov dword [edi + 0xc], 0
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501bd0
mov eax, dword [esp + 0x12c]
mov dword [edi + 8], eax
jmp 0x501be5
lea ecx, [edi + 8]
mov eax, dword [esp + 0x12c]
mov edx, edi
mov edi, ecx
call fcn.00462a70
mov edi, edx
mov byte [edi + 0x1a], 1
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
lea eax, [0x70abb8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], edi
add esp, 0x114
ret
mov ecx, dword [esp + 0x12c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004fe3a0
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 0x50252c
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x120]
mov dword [esp], edx
lea ebx, [0x667360]
mov dword [esp + 4], ebx
lea ebx, [0x8e42bc]
mov dword [esp + 8], ebx
call ecx
mov eax, dword [esp + 0x10]
lea ecx, [0x653120]
cmp dword [esp + 0xc], ecx
je 0x501c90
xor eax, eax
mov dword [esp + 0x64], eax
test eax, eax
je 0x501cb7
mov edx, dword [eax]
test edx, edx
je 0x501cb7
mov eax, dword [edx]
mov ecx, dword [esp + 0x12c]
mov dword [esp], ecx
mov ebx, dword [esp + 0x130]
mov dword [esp + 4], ebx
call eax
lea eax, [0x66bfc0]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
mov dword [esp + 0xac], eax
lea ecx, [0x50ce00]
mov dword [eax], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501cee
mov ecx, dword [esp + 0x118]
mov dword [eax + 4], ecx
jmp 0x501cfd
lea edi, [eax + 4]
mov eax, dword [esp + 0x118]
call fcn.00462a70
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [esp + 0x120]
mov dword [esp], edx
lea ebx, [0x667320]
mov dword [esp + 4], ebx
lea ebx, [0x8e42bc]
mov dword [esp + 8], ebx
call ecx
mov eax, dword [esp + 0x10]
lea ecx, [0x6642c0]
cmp dword [esp + 0xc], ecx
je 0x501d39
xor eax, eax
test eax, eax
jne 0x501d44
mov eax, dword [esp + 0xac]
mov dword [esp + 0x68], eax
mov ecx, dword [0x8bb79c]
mov dword [esp + 0xa8], ecx
lea edx, [0x685dc0]
mov dword [esp], edx
call fcn.0040b7c0
mov eax, dword [esp + 4]
lea ecx, [0x70b904]
mov dword [eax], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501d85
mov ecx, dword [esp + 0xa8]
mov dword [eax + 4], ecx
jmp 0x501d98
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0xa8]
call fcn.00462a70
mov eax, ecx
mov ecx, dword [esp + 0x11c]
mov dword [eax + 8], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501db8
mov ecx, dword [esp + 0x120]
mov dword [eax + 0xc], ecx
jmp 0x501dcb
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x120]
call fcn.00462a70
mov eax, ecx
lea ecx, [0x70b9c4]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004e73a0
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 + 0x124]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x128]
mov dword [esp + 8], ebp
lea esi, [0x70a444]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x130]
mov dword [esp + 0x18], edi
call fcn.0044edd0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
lea edx, [0x8e4418]
mov dword [esp], edx
mov dword [esp + 4], 1
call fcn.0046d250
mov eax, dword [esp + 0x118]
test eax, eax
je 0x501e78
lea ecx, [eax + 8]
jmp 0x501e83
mov edx, dword [0x8b65d8]
test byte [edx], al
lea ecx, [edx + 8]
mov dword [esp + 0x5c], ecx
lea eax, [0x67e300]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
lea ecx, [0x5027d0]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb0]
mov dword [eax + 4], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501ec5
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
jmp 0x501ee1
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x70]
call fcn.00462a70
lea edi, [ecx + 0xc]
mov eax, dword [esp + 0x68]
call fcn.00462a70
mov eax, ecx
mov ecx, dword [esp + 0x128]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x501f01
mov ecx, dword [esp + 0x124]
mov dword [eax + 0x10], ecx
jmp 0x501f14
lea edi, [eax + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x124]
call fcn.00462a70
mov eax, ecx
mov ecx, dword [esp + 0x130]
mov dword [eax + 0x1c], ecx
mov edx, dword [0x8e4520]
test edx, edx
jne 0x501f34
mov edx, dword [esp + 0x12c]
mov dword [eax + 0x18], edx
jmp 0x501f47
lea edi, [eax + 0x18]
mov edx, eax
mov eax, dword [esp + 0x12c]
call fcn.00462a70
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.004ee0d0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
movzx ecx, byte [esp + 0x14]
test cl, cl
jne 0x501f91
lea eax, [0x8e4418]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call fcn.0046d250
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x120]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov dword [esp + 0xa4], eax
lea edi, [esp + 0x100]
xor eax, eax
call fcn.00462cfb
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 + 0x100]
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.00448210
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x50224e
lea edi, [esp + 0xd8]
lea esi, [esp + 0x100]
call fcn.004631de
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 0x5021c5
lea edx, [0x70abb8]
cmp eax, edx
jne 0x50209c
mov edx, dword [esp + 0x64]
test edx, edx
jmp 0x5021cb
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x40], eax
mov edx, dword [0x8b69dc]
cmp dword [0x8b69d8], eax
jne 0x5020da
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00403790
movzx eax, byte [esp + 0xc]
test al, al
je 0x5020d2
mov eax, 1
jmp 0x50210d
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
lea edx, [0x66be40]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004093b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x502100
xor eax, eax
jmp 0x50210d
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, [0x685d20]
mov dword [esp], edx
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x8e4520]
test eax, eax
jne 0x502162
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x50216e
mov eax, dword [esp + 0xb0]
call fcn.00462a70
mov ecx, dword [esp + 0x130]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x502194
mov eax, dword [esp + 0x12c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x64]
test eax, eax
jmp 0x5021b1
lea ecx, [edi + 8]
mov eax, dword [esp + 0x12c]
mov edx, edi
mov edi, ecx
call fcn.00462a70
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, [0x70abb8]
mov ecx, edi
jmp 0x5021cb
mov edx, dword [esp + 0x64]
test edx, edx
je 0x5025e1
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x5025e1
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x4c], eax
mov ebx, dword [esp + 0xdc]
lea ebp, [0x6591c0]
cmp dword [esp + 0xd8], ebp
jne 0x502204
mov esi, dword [ebx]
mov ebx, dword [ebx + 4]
jmp 0x502208
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x90], esi
lea eax, [0x662460]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044b410
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x50268b
mov dword [esp + 0x9c], eax
xor edx, edx
mov ebx, dword [esp + 0x90]
jmp 0x5026e0
mov eax, dword [esp + 0x118]
test eax, eax
je 0x50225e
add eax, 8
jmp 0x502269
mov ecx, dword [0x8b65d8]
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.004ee570
movzx eax, byte [esp + 0xc]
test al, al
je 0x502294
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
call eax
jmp 0x5022f2
lea eax, [0x670f40]
mov dword [esp], eax
call fcn.0040b7c0
mov eax, dword [esp + 4]
lea ecx, [0x502780]
mov dword [eax], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x5022cb
mov ecx, dword [esp + 0x8c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
jmp 0x5022ea
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x8c]
call fcn.00462a70
lea edi, [ecx + 8]
mov eax, dword [esp + 0x74]
call fcn.00462a70
mov eax, ecx
mov dword [esp], eax
call fcn.004421d0
mov eax, dword [esp + 0x11c]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x120]
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 [0x8bc5b4]
mov ebp, dword [esp + 8]
mov dword [esp + 0x84], ebp
cmp dword [0x8bc5b0], edx
jne 0x50237f
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403790
movzx eax, byte [esp + 0xc]
test al, al
je 0x502366
lea eax, [0x70af3c]
lea ecx, [0x8e42bc]
jmp 0x5023cd
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x84]
mov ebx, dword [0x8b69dc]
cmp dword [0x8b69d8], edx
jne 0x5023cd
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00403790
movzx eax, byte [esp + 0xc]
test al, al
je 0x5023b4
mov eax, dword [0x8b6ae8]
mov ecx, dword [0x8b6aec]
jmp 0x5023cd
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, [0x685d20]
mov dword [esp], edx
call fcn.0040b7c0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [0x8e4520]
test eax, eax
jne 0x502416
mov ecx, dword [esp + 0xb0]
mov dword [edi], ecx
jmp 0x502422
mov eax, dword [esp + 0xb0]
call fcn.00462a70
mov ecx, dword [esp + 0x130]
mov dword [edi + 0xc], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x502442
mov eax, dword [esp + 0x12c]
mov dword [edi + 8], eax
jmp 0x502457
lea ecx, [edi + 8]
mov eax, dword [esp + 0x12c]
mov edx, edi
mov edi, ecx
call fcn.00462a70
mov edi, edx
mov dword [esp + 0x80], edi
mov eax, dword [0x8b69dc]
mov ecx, dword [esp + 0x98]
cmp dword [0x8b69d8], ecx
je 0x502480
mov eax, dword [esp + 0x64]
test eax, eax
mov ecx, 0
jmp 0x5024af
mov dword [esp], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00403790
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 0x5024f0
mov edx, dword [eax + 4]
test edx, edx
je 0x5024f0
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, [0x70abb8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
call eax
mov edi, dword [esp + 0x80]
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 0
lea eax, [0x70abb8]
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], edi
add esp, 0x114
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, [0x65d680]
mov dword [esp], eax
call fcn.0040b7c0
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 [0x8e4520]
test eax, eax
jne 0x502572
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
jmp 0x50257b
mov eax, dword [esp + 0x78]
call fcn.00462a70
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x8e4520]
test ecx, ecx
jne 0x502595
mov eax, dword [esp + 0x60]
mov dword [edi + 0xc], eax
jmp 0x5025a7
lea ecx, [edi + 0xc]
mov eax, dword [esp + 0x60]
mov edx, edi
mov edi, ecx
call fcn.00462a70
mov edi, edx
mov dword [esp + 0x134], edi
mov dword [esp + 0x138], 1
mov dword [esp + 0x13c], 1
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0
add esp, 0x114
ret
mov edx, dword [esp + 0xdc]
mov ebx, dword [esp + 0xd8]
movzx ebp, byte [esp + 0xe8]
test eax, eax
je 0x502607
xor edx, edx
mov ebx, eax
mov ebp, ecx
xor ecx, ecx
xor eax, eax
jmp 0x50264b
lea eax, [0x6591c0]
cmp ebx, eax
jne 0x502675
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov edx, dword [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x502647
mov dword [esp + 0x28], eax
lea edx, [0x673740]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.0044b2c0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov edx, eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x134], ecx
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], edx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x144], ebp
add esp, 0x114
ret
mov dword [esp], ebx
mov dword [esp + 4], eax
lea eax, [0x662460]
mov dword [esp + 8], eax
call fcn.00408df0
mov ebx, dword [esp + 0x64]
mov edx, dword [ebx + 4]
mov ebx, dword [edx]
movzx ebp, byte [esp + 0xe8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
xchg ebp, eax
mov byte [esp + 0xc], al
xchg ebp, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
call ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xa0]
jmp 0x5025e1
mov ecx, dword [esp + 0x94]
add ecx, 0x14
mov edx, eax
mov ebx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x94], ebx
lea edi, [esp + 0xc4]
mov esi, ebx
call fcn.004631de
lea edi, [esp + 0xec]
lea esi, [esp + 0xc4]
call fcn.004631de
lea eax, [0x673740]
mov dword [esp], eax
lea ecx, [esp + 0xec]
mov dword [esp + 4], ecx
call fcn.00408f50
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x9c]
lea edx, [ecx + eax*8]
mov ebx, dword [esp + 8]
lea ebp, [0x673740]
mov dword [edx], ebp
mov edx, dword [0x8e4520]
lea edi, [ecx + eax*8 + 4]
test edx, edx
jne 0x502751
mov dword [edi], ebx
jmp 0x50275c
mov edx, eax
mov eax, ebx
call fcn.00462a70
mov eax, edx
inc eax
mov ebx, dword [esp + 0x48]
cmp ebx, eax
jg 0x5026d2
mov eax, ecx
mov ecx, ebx
jmp 0x50268b
call fcn.00461660
jmp fcn.00501b20