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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x5035d3
sub esp, 0x84
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
call fcn.00487dd0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x6c], edx
mov ebx, eax
and eax, 0x1f
cmp eax, 0x16
je 0x5034b0
mov eax, dword [esp + 0x88]
mov ebp, dword [eax + 0x1c]
lea esi, [eax + 0x1c]
mov dword [esp + 0x68], esi
test ebp, ebp
je 0x50344d
mov edi, dword [0x79e7b0]
mov ebx, dword [ebp + 0x1c]
test edi, edi
jne 0x503421
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x4c], ebp
mov byte [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov ebx, dword [0x79e7b0]
lea edi, [ebp + 4]
test ebx, ebx
jne 0x5033eb
mov ebx, dword [esp + 0x8c]
mov dword [ebp + 4], ebx
mov edi, dword [ebx + 4]
test edi, edi
jne 0x502dbc
lea edi, [ebx + 0xc]
test byte [edi], al
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x40
mov esi, dword [0x79e7b0]
test esi, esi
jne 0x5033c0
mov dword [ebx], edi
mov dword [ebp + 0xc], 0xffffffff
mov byte [ebp + 8], 1
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
call fcn.004888a0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x50339d
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 8], eax
call fcn.00487dd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00489c80
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00506bd0
mov eax, dword [esp + 8]
mov dword [esp + 0x38], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
test edx, edx
je 0x502e63
mov edx, dword [edx + 4]
lea eax, [0x78db50]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.0044b930
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test al, al
je 0x503331
lea eax, [0x5cd8e0]
cmp eax, edx
jne 0x5035bb
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], eax
sar eax, 0x1f
mov dword [esp + 8], eax
call fcn.00501390
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
mov edx, dword [ecx + 4]
mov ebx, dword [esp + 0x20]
lea ebp, [edx + ebx]
mov dword [esp + 0x34], ebp
mov esi, dword [ecx + 8]
mov edi, dword [ecx]
cmp ebp, esi
ja 0x5032ee
cmp ebp, esi
ja 0x5035b4
mov dword [esp + 0x30], esi
mov dword [esp + 0x64], edi
lea eax, [edi + edx]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00448cd0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [0x79e7b0]
test eax, eax
jne 0x5032d9
mov eax, dword [esp + 0x64]
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea ebx, [eax + 8]
lea ebp, [ecx - 1]
cmp ebp, ecx
jae 0x5035ad
mov dword [esp + 0x60], ebx
lea ecx, [edx + ecx*8 - 8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], edx
call fcn.00505c40
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edx
call fcn.00505da0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
lea ebp, [edx + 1]
cmp ebp, ebx
jg 0x503264
lea ebx, [edx + 1]
mov dword [eax + 0xc], ebx
lea ebx, [ecx + edx*8]
lea ebp, [0x6999a0]
mov dword [ebx], ebp
mov ebx, dword [0x79e7b0]
lea ecx, [ecx + edx*8 + 4]
test ebx, ebx
jne 0x50324c
mov edx, dword [esp + 0x8c]
mov dword [ecx], edx
lea eax, [0x789610]
mov dword [esp], eax
call fcn.0044d1e0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [0x5e1ae0]
cmp edx, eax
jne 0x503595
mov dword [esp + 0x64], ecx
mov eax, dword [0x78d954]
mov ebx, dword [0x78d950]
mov ebp, dword [ecx + 4]
lea esi, [eax + ebp]
mov dword [esp + 0x34], esi
mov edi, dword [ecx]
mov edx, dword [ecx + 8]
cmp esi, edx
ja 0x503201
cmp esi, edx
ja 0x50358e
mov dword [esp + 0x30], edx
mov dword [esp + 0x5c], edi
lea ecx, [edi + ebp]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00448cd0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [0x79e7b0]
test eax, eax
jne 0x5031e8
mov eax, dword [esp + 0x5c]
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
call fcn.00504e90
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x6c]
test edx, edx
jne 0x5031d0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
dec ecx
cmp ecx, edx
ja 0x503587
mov dword [eax + 0xc], ecx
mov dword [esp], eax
lea ecx, [0x6999a0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc], ecx
call fcn.00505260
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 4]
cmp ecx, 0x40000000
jl 0x5031c4
lea ecx, [eax + 0xc]
test byte [ecx], al
mov dword [eax + 4], 0
mov dword [eax + 8], 0x40
mov edx, dword [0x79e7b0]
test edx, edx
jne 0x5031af
mov dword [eax], ecx
lea ecx, [0x789610]
mov dword [esp], ecx
lea ecx, [0x5e1ae0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0044d050
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0x6c]
test edx, edx
jne 0x50319a
mov ecx, dword [0x79e7b0]
mov edx, dword [esp + 0x4c]
lea ebx, [edx + 0x1c]
mov ebp, dword [eax + 0x1c]
test ecx, ecx
jne 0x503178
mov dword [edx + 0x1c], ebp
mov dword [eax + 0x1c], edx
add esp, 0x84
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040d8c0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x503171
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.005064f0
mov eax, dword [esp + 0x88]
jmp 0x503157
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov eax, dword [esp + 0x64]
jmp 0x50312a
mov dword [eax + 4], 0
jmp 0x50312a
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.005064f0
mov eax, dword [esp + 0x88]
jmp 0x5030bd
mov dword [esp], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x64]
jmp 0x503075
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ebx
lea eax, [0x5cdaa0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
call fcn.004350a0
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x50302c
mov dword [esp], ecx
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x502fe1
lea eax, [0x5d1ba0]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.004350a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x88]
mov dword [ebx + 0x10], edx
mov edx, dword [0x79e7b0]
test edx, edx
jne 0x5032b0
mov dword [ebx + 8], eax
mov edx, ecx
mov ecx, eax
mov eax, ebx
jmp 0x502fb5
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x88]
jmp 0x5032a5
mov dword [esp], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x502f33
mov dword [esp + 0x30], edx
lea eax, [0x5cdaa0]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
call fcn.004350a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
jmp 0x502ee6
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + 8]
mov ebp, dword [eax + 0xc]
test ebx, ebx
je 0x50334a
mov ebx, dword [ebx + 4]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
lea eax, [0x605196]
mov dword [esp], eax
mov dword [esp + 4], 0x25
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00506450
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
jmp 0x502e8e
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00501390
add esp, 0x84
ret
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.0040d8c0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x4c]
jmp 0x502dbc
mov dword [esp], edi
mov eax, dword [esp + 0x8c]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x68]
jmp 0x502d92
mov dword [esp + 0x50], ebp
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.0040d8c0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x68]
jmp 0x502d68
lea eax, [0x5e1040]
mov dword [esp], eax
call fcn.0040d050
mov eax, dword [esp + 4]
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x50348c
mov ecx, dword [esp + 0x88]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [esp + 0x88]
jmp 0x502d68
mov dword [esp + 0x50], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x88]
jmp 0x503472
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004888a0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5034da
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x28]
jmp 0x502d3b
mov eax, dword [esp + 0x90]
mov dword [esp], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x98]
mov dword [esp + 8], edx
call fcn.00487dd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00489c80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x50352a
mov ecx, dword [ecx + 4]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
lea eax, [0x607dbe]
mov dword [esp], eax
mov dword [esp + 4], 0x3a
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00506450
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x28]
jmp 0x502d3b
call fcn.004243c0
ud2
call fcn.004243c0
ud2
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [0x5cd220]
mov dword [esp + 8], eax
call fcn.0040a5d0
ud2
call fcn.00424360
ud2
call fcn.004243c0
ud2
mov dword [esp], edx
mov dword [esp + 4], eax
lea eax, [0x5cd220]
mov dword [esp + 8], eax
call fcn.0040a5d0
ud2
call fcn.00446b60
jmp fcn.00502cd0