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

Disassembly:
push 0xffffffffffffffff
push 0x541a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x11]
lea ecx, [esp + 0x12]
push eax
lea edx, [esp + 0x17]
push ecx
xor ebx, ebx
push edx
push 0x64
lea ecx, [esp + 0x58]
mov dword [esp + 0x74], ebx
call fcn.00475e30
mov eax, dword [0x548f1c]
mov esi, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x64], 1
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x14], eax
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
je 0x502dbb
xor edi, edi
mov edx, dword [esi + 0x6c]
mov ecx, dword [0x548f1c]
mov eax, dword [edi + edx + 0x2c]
lea ebp, [edi + edx + 0x2c]
cmp eax, ecx
je 0x502d84
lea ecx, [esp + 0x28]
push ebp
push ecx
lea ecx, [esp + 0x50]
call fcn.0050bd40
lea edx, [esp + 0x48]
lea ecx, [esp + 0x20]
push edx
push 0
call fcn.0043edd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x502d7b
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x40]
push eax
push ebp
mov dword [esp + 0x74], 0
call fcn.004f70c0
push eax
lea ecx, [esp + 0x4c]
call fcn.004557c0
add eax, 4
jmp 0x502d7e
add eax, 8
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x14]
mov dword [edi + edx + 0x2c], eax
mov ecx, dword [esi + 0x70]
inc eax
inc ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
add edi, 0x38
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jb 0x502d15
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov dword [esp + 0x6c], 0
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
je 0x502e90
mov ebx, dword [esp + 0x14]
xor edi, edi
mov edx, dword [esi + 0x78]
mov ecx, dword [0x548f1c]
mov eax, dword [edi + edx + 0x2c]
lea ebp, [edi + edx + 0x2c]
cmp eax, ecx
je 0x502e55
lea ecx, [esp + 0x28]
push ebp
push ecx
lea ecx, [esp + 0x50]
call fcn.0050bd40
lea edx, [esp + 0x48]
lea ecx, [esp + 0x18]
push edx
push 0
call fcn.0043edd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x502e50
lea eax, [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
push ebp
mov dword [esp + 0x28], 0
call fcn.004f70c0
push eax
lea ecx, [esp + 0x4c]
call fcn.004557c0
add eax, 4
jmp 0x502e53
add eax, 8
mov dword [eax], ebx
mov ecx, dword [esi + 0x78]
mov eax, 0x92492493
mov ebp, dword [esp + 0x6c]
mov dword [edi + ecx + 0x2c], ebx
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
inc ebx
sub ecx, edx
inc ebp
imul ecx
add edx, ecx
add edi, 0x38
sar edx, 5
mov eax, edx
mov dword [esp + 0x14], ebx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], ebp
cmp ebp, edx
jb 0x502dea
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
je 0x502fa3
xor edi, edi
mov edx, dword [esi + 0x6c]
mov ecx, dword [0x548f1c]
mov eax, dword [edi + edx + 0x34]
cmp eax, ecx
je 0x502f67
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0043edd0
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x20]
lea eax, [edi + edx + 0x34]
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.0050bd40
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp edx, eax
je 0x502f67
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0x30]
lea ebp, [edi + eax + 0x34]
push ebp
push ecx
lea ecx, [esp + 0x50]
call fcn.0050bd40
lea edx, [esp + 0x48]
lea ecx, [esp + 0x38]
push edx
push 0
call fcn.0043edd0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x502f59
mov eax, dword [ebp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
call fcn.004557c0
mov edx, dword [esi + 0x6c]
add eax, 4
mov eax, dword [eax]
mov dword [edi + edx + 0x34], eax
jmp 0x502f7c
mov edx, dword [esi + 0x6c]
add eax, 8
mov eax, dword [eax]
mov dword [edi + edx + 0x34], eax
jmp 0x502f7c
mov ecx, dword [esi + 0x6c]
mov edx, dword [0x548f1c]
mov dword [edi + ecx + 0x34], edx
mov eax, dword [esi + 0x6c]
mov byte [edi + eax + 0x30], 1
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
inc ebx
sar edx, 5
mov ecx, edx
add edi, 0x38
shr ecx, 0x1f
add edx, ecx
cmp ebx, edx
jb 0x502eb5
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
xor ebx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x50309f
xor edi, edi
mov ecx, dword [esi + 0x78]
mov edx, dword [edi + ecx + 0x34]
lea eax, [edi + ecx + 0x34]
cmp edx, dword [0x548f1c]
je 0x503063
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
call fcn.0050bd40
mov eax, dword [esp + 0x38]
test eax, eax
je 0x503063
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x30]
lea ebp, [edi + ecx + 0x34]
lea ecx, [esp + 0x48]
push ebp
push edx
call fcn.0050bd40
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push 0
call fcn.0043edd0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x503054
mov ecx, dword [ebp]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x30], 0
call fcn.004557c0
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi + ecx + 0x34], edx
jmp 0x503078
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 8]
add eax, 8
mov dword [edi + ecx + 0x34], edx
jmp 0x503078
mov eax, dword [esi + 0x78]
mov ecx, dword [0x548f1c]
mov dword [edi + eax + 0x34], ecx
mov edx, dword [esi + 0x78]
mov byte [edi + edx + 0x30], 1
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
inc ebx
sar edx, 5
mov eax, edx
add edi, 0x38
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jb 0x502fc8
mov ecx, dword [esi + 0x88]
mov ebp, dword [esi + 0x84]
sub ecx, ebp
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
mov dword [esp + 0x20], 0
shr ecx, 0x1f
add edx, ecx
je 0x503224
xor ebp, ebp
mov ecx, dword [esi + 0x84]
mov eax, 0x2aaaaaab
mov dword [esp + 0x18], 0
mov edx, dword [ecx + ebp + 4]
mov edi, dword [ecx + ebp]
sub edx, edi
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
je 0x5031f2
xor edi, edi
mov eax, dword [ecx + ebp]
mov dword [esp + 0x6c], 0
mov ecx, dword [edi + eax + 4]
mov ebx, dword [edi + eax]
sub ecx, ebx
sar ecx, 2
je 0x5031bf
mov edx, dword [esp + 0x6c]
mov ebx, dword [edi + eax]
lea eax, [esp + 0x48]
lea ecx, [edx*4]
push eax
add ebx, ecx
lea ecx, [esp + 0x4c]
push ebx
call fcn.00441410
push eax
lea ecx, [esp + 0x40]
call fcn.0043edd0
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x38]
call fcn.0043edd0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jne 0x503184
lea edx, [esp + 0x28]
lea ecx, [esp + 0x40]
push edx
push ebx
mov dword [esp + 0x30], 0
call fcn.004f70c0
push eax
lea ecx, [esp + 0x4c]
call fcn.004557c0
add eax, 4
jmp 0x503187
add eax, 8
mov ecx, dword [esi + 0x84]
mov eax, dword [eax]
mov edx, dword [ecx + ebp]
mov ecx, dword [esp + 0x6c]
inc ecx
mov edx, dword [edx + edi]
mov dword [esp + 0x6c], ecx
mov dword [edx + ecx*4 - 4], eax
mov edx, dword [esi + 0x84]
mov eax, dword [edx + ebp]
mov edx, dword [edi + eax + 4]
mov ebx, dword [edi + eax]
sub edx, ebx
sar edx, 2
cmp ecx, edx
jb 0x503119
mov ecx, dword [esi + 0x84]
mov ebx, dword [esp + 0x18]
inc ebx
add edi, 0xc
mov edx, dword [ecx + ebp + 4]
mov eax, dword [ecx + ebp]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
mov dword [esp + 0x18], ebx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jb 0x5030fc
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x84]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov edi, dword [esp + 0x20]
add ebp, 0xc
sar edx, 1
mov ecx, edx
inc edi
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x20], edi
cmp edi, edx
jb 0x5030cd
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
xor ebp, ebp
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], ebp
je 0x50332e
mov eax, dword [esi + 0x90]
xor ebx, ebx
mov ecx, dword [eax + ebp + 4]
mov edi, dword [eax + ebp]
sub ecx, edi
sar ecx, 2
je 0x5032fc
mov edi, dword [eax + ebp]
lea ecx, [ebx*4]
lea edx, [esp + 0x48]
add edi, ecx
push edx
push edi
lea ecx, [esp + 0x50]
call fcn.00441410
push eax
lea ecx, [esp + 0x40]
call fcn.0043edd0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
push 0
call fcn.0043edd0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jne 0x5032cf
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push edi
lea ecx, [esp + 0x48]
call fcn.004f70c0
push eax
lea ecx, [esp + 0x4c]
call fcn.004557c0
add eax, 4
jmp 0x5032d2
add eax, 8
mov edx, dword [esi + 0x90]
inc ebx
mov ecx, dword [edx + ebp]
mov edx, dword [eax]
mov dword [ecx + ebx*4 - 4], edx
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [eax + ebp]
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x503268
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
mov edi, dword [esp + 0x6c]
add ebp, 0xc
sar edx, 1
mov eax, edx
inc edi
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x6c], edi
cmp edi, edx
jb 0x50324e
mov eax, dword [esi + 0x108]
mov ebp, dword [eax]
cmp ebp, eax
je 0x503464
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub ecx, edx
mov dword [esp + 0x6c], 0
sar ecx, 2
je 0x5033e6
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x4c]
lea ebx, [edx*4]
mov edx, dword [ebp + 0xc]
mov edi, ebx
add edi, edx
push edi
call fcn.00441410
push eax
lea ecx, [esp + 0x40]
call fcn.0043edd0
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x38]
call fcn.0043edd0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jne 0x5033bf
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
call fcn.004557c0
add eax, 4
jmp 0x5033c2
add eax, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
mov eax, dword [esp + 0x6c]
mov dword [ebx + ecx], edx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
inc eax
sub ecx, ebx
mov dword [esp + 0x6c], eax
sar ecx, 2
cmp eax, ecx
jb 0x503357
mov edx, dword [0x548f1c]
mov eax, dword [ebp + 0x18]
lea edi, [ebp + 0x18]
cmp eax, edx
je 0x503453
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push edi
call fcn.00441410
push eax
lea ecx, [esp + 0x20]
call fcn.0043edd0
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x48]
call fcn.0043edd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jne 0x50344c
mov edx, dword [edi]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0
call fcn.004557c0
add eax, 4
jmp 0x50344f
add eax, 8
mov ecx, dword [eax]
mov dword [edi], ecx
mov ebp, dword [ebp]
mov eax, dword [esi + 0x108]
cmp ebp, eax
jne 0x50333e
mov eax, dword [esi + 0x10c]
mov edi, dword [eax]
cmp edi, eax
mov dword [esp + 0x6c], edi
je 0x5035c7
jmp 0x50347e
mov edi, dword [esp + 0x6c]
mov edx, dword [0x548f1c]
mov eax, dword [edi + 8]
lea ebp, [edi + 8]
cmp eax, edx
je 0x503530
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push ebp
call fcn.00441410
push eax
lea ecx, [esp + 0x48]
call fcn.0043edd0
lea ecx, [esp + 0x48]
push ecx
push 0
lea ecx, [esp + 0x40]
call fcn.0043edd0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jne 0x503528
mov eax, dword [esp + 0x58]
mov edx, dword [ebp]
inc eax
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
call fcn.0043fdd0
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
sub edi, ecx
sar edi, 2
xor edx, edx
div edi
mov edi, edx
mov ebx, dword [ecx + edi*4]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043f0e0
mov dword [eax], ebx
mov edx, dword [esp + 0x4c]
mov dword [edx + edi*4], eax
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x6c]
inc ecx
mov dword [esp + 0x58], ecx
add eax, 8
jmp 0x50352b
add eax, 8
mov eax, dword [eax]
mov dword [ebp], eax
mov ecx, dword [0x548f1c]
mov eax, dword [edi + 0xc]
lea ebp, [edi + 0xc]
cmp eax, ecx
je 0x5035b3
push ebp
lea ecx, [esp + 0x4c]
call fcn.00441410
test eax, eax
jne 0x5035ab
mov edx, dword [ebp]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x48]
inc eax
mov dword [esp + 0x20], edx
push eax
call fcn.0043fdd0
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
sub edi, ecx
sar edi, 2
xor edx, edx
div edi
mov edi, edx
mov ebx, dword [ecx + edi*4]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0043f0e0
mov dword [eax], ebx
mov edx, dword [esp + 0x4c]
mov dword [edx + edi*4], eax
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x6c]
inc ecx
mov dword [esp + 0x58], ecx
add eax, 8
jmp 0x5035ae
add eax, 8
mov eax, dword [eax]
mov dword [ebp], eax
mov eax, dword [edi]
mov ecx, dword [esi + 0x10c]
cmp eax, ecx
mov dword [esp + 0x6c], eax
jne 0x50347a
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
sub edx, ecx
xor edi, edi
sar edx, 2
je 0x503611
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x5035f8
mov esi, dword [eax]
test eax, eax
je 0x5035f2
push eax
call fcn.005265a0
mov ecx, dword [esp + 0x50]
add esp, 4
test esi, esi
mov eax, esi
jne 0x5035df
mov dword [ecx + edi*4], 0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
inc edi
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x5035d8
pop edi
pop esi
pop ebp
mov dword [esp + 0x4c], 0
test ecx, ecx
pop ebx
je 0x50362a
push ecx
call fcn.005265a0
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x58
ret