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

Disassembly:
push 0xffffffffffffffff
push 0x5ef8a8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x9c]
lea eax, [ebx + 0x2e8]
push eax
mov dword [esp + 0x44], eax
call dword [0x5fd18c]
mov byte [esp + 0x44], 1
mov dword [esp + 0x94], 0
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x5240c6
call fcn.005b8b18
mov ebp, dword [esi + 4]
cmp ebp, dword [esi + 8]
jbe 0x5240d3
call fcn.005b8b18
push edi
push esi
push ebp
push esi
lea eax, [esp + 0x58]
push eax
push esi
call fcn.004ef990
lea edi, [ebx + 0x309]
test edi, edi
je 0x5240f1
lea eax, [edi - 9]
jmp 0x5240f3
xor eax, eax
mov eax, dword [eax + 0x10]
push eax
mov ecx, esi
call fcn.0052b740
test edi, edi
je 0x524107
lea eax, [edi - 9]
jmp 0x524109
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x524118
lea ebp, [eax - 0x38]
jmp 0x52411a
xor ebp, ebp
test edi, edi
mov dword [esp + 0x3c], ebp
je 0x524127
lea eax, [edi - 9]
jmp 0x524129
xor eax, eax
mov eax, dword [eax + 4]
cmp ebp, eax
mov dword [esp + 0x4c], eax
je 0x524373
mov ecx, dword [esp + 0xa0]
lea eax, [ecx + 0x14]
mov ebx, eax
sub ebx, ecx
mov dword [esp + 0x1c], ebx
jmp 0x524154
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
call fcn.00523820
mov edi, dword [eax]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x524188
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x524188
test esi, esi
je 0x524188
push esi
call fcn.004b49f0
push esi
call fcn.0059b877
add esp, 4
cmp ebx, 0x14
lea esi, [edi + 0x140]
jbe 0x524198
call fcn.005b8b18
mov eax, dword [esp + 0xa0]
lea ecx, [eax + 0x14]
cmp eax, ecx
je 0x5241c0
sub esi, eax
mov dl, byte [eax]
cmp dl, byte [esi + eax]
jne 0x5241b8
add eax, 1
cmp eax, ecx
jne 0x5241a8
jmp 0x5241c0
cmp eax, ecx
jne 0x524318
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x94], 1
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp]
mov dword [esp + 0x5c], ecx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x74], edx
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 1
mov eax, dword [edi + 0x90]
lea ecx, [eax - 1]
cmp dword [ebp], ecx
jne 0x524232
mov ecx, dword [edi + 0x94]
add eax, 0xffffffff
imul ecx
mov ecx, dword [edi + 0x88]
mov edi, dword [edi + 0x8c]
sub ecx, eax
sbb edi, edx
mov dword [esp + 0x30], edi
mov edi, ecx
jmp 0x524238
mov edi, dword [edi + 0x94]
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
lea eax, [ecx + edi - 1]
cdq
idiv ecx
mov edi, eax
lea eax, [esp + 0x60]
push eax
mov eax, edi
mov dword [esp + 0x30], edi
call fcn.004ee0a0
xor ebx, ebx
cmp edi, ebx
jle 0x5242e6
mov dword [esp + 0x18], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
cmp dword [edx + ecx], 0
je 0x5242da
push ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
call fcn.0052aae0
mov edi, eax
cmp dword [edi], 0
je 0x524291
cmp dword [edi + 4], 0
jne 0x524296
call fcn.005b8b18
mov eax, dword [edi]
mov ebp, dword [eax + 8]
mov esi, dword [edi + 8]
add eax, 4
cmp ebp, dword [eax + 8]
jbe 0x5242ab
call fcn.005b8b18
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub ecx, ebp
sar ecx, 2
shl ecx, 5
add esi, ecx
cmp esi, dword [edx]
jb 0x5242c3
call fcn.005b8b18
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
mov edx, 1
shl edx, cl
or dword [eax], edx
add dword [esp + 0x18], 0x28
add ebx, 1
cmp ebx, edi
jl 0x524268
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.0052b880
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x60], 0
je 0x524318
push eax
call fcn.0059b877
add esp, 4
mov ecx, dword [ebp + 0x40]
test ecx, ecx
lea eax, [ebp + 0x38]
je 0x52433b
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x524358
jmp 0x524330
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x524330
jmp 0x524358
mov ecx, dword [eax]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
jne 0x524351
mov eax, ecx
mov ecx, dword [ecx]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
je 0x524345
cmp dword [eax + 8], ecx
je 0x524358
mov eax, ecx
test eax, eax
je 0x524361
add eax, 0xffffffc8
jmp 0x524363
xor eax, eax
mov ebp, eax
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebp
jne 0x524150
mov ecx, dword [esp + 0x9c]
add ecx, 0x31d
je 0x524387
lea eax, [ecx - 9]
jmp 0x524389
xor eax, eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x524398
lea ebx, [eax - 0x38]
jmp 0x52439a
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x3c], ebx
je 0x5243a7
lea eax, [ecx - 9]
jmp 0x5243a9
xor eax, eax
mov eax, dword [eax + 4]
cmp ebx, eax
mov dword [esp + 0x4c], eax
je 0x5245e4
mov ecx, dword [esp + 0xa0]
lea eax, [ecx + 0x14]
sub eax, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2c]
call fcn.00523820
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5243fc
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5243fc
test esi, esi
je 0x5243fc
push esi
call fcn.004b49f0
push esi
call fcn.0059b877
add esp, 4
cmp dword [esp + 0x28], 0x14
lea ebp, [edi + 0x140]
jbe 0x52440e
call fcn.005b8b18
mov eax, dword [esp + 0xa0]
lea esi, [eax + 0x14]
cmp eax, esi
je 0x524438
sub ebp, eax
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [eax + ebp]
jne 0x524430
add eax, 1
cmp eax, esi
jne 0x524420
jmp 0x524438
cmp eax, esi
jne 0x52458a
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x94], 2
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x7c], ecx
mov edx, dword [ebx]
mov dword [esp + 0x5c], edx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x74], ecx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x90]
lea ecx, [eax - 1]
cmp dword [ebx], ecx
jne 0x5244a4
mov ecx, dword [edi + 0x94]
add eax, 0xffffffff
imul ecx
mov ecx, dword [edi + 0x88]
mov edi, dword [edi + 0x8c]
sub ecx, eax
sbb edi, edx
mov dword [esp + 0x20], edi
mov edi, ecx
jmp 0x5244aa
mov edi, dword [edi + 0x94]
mov edx, dword [esp + 0x9c]
mov ecx, dword [edx]
lea eax, [edi + ecx - 1]
cdq
idiv ecx
mov esi, eax
lea eax, [esp + 0x60]
push eax
mov eax, esi
mov dword [esp + 0x20], esi
call fcn.004ee0a0
xor ebx, ebx
cmp esi, ebx
jle 0x524558
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x18]
cmp dword [eax + edx], 0
je 0x52454c
push ebx
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x68]
call fcn.0052aae0
mov edi, eax
cmp dword [edi], 0
je 0x524507
cmp dword [edi + 4], 0
jne 0x52450c
call fcn.005b8b18
mov eax, dword [edi]
mov ebp, dword [eax + 8]
mov esi, dword [edi + 8]
add eax, 4
cmp ebp, dword [eax + 8]
jbe 0x524521
call fcn.005b8b18
mov edx, dword [edi + 4]
mov eax, dword [edi]
sub edx, ebp
sar edx, 2
shl edx, 5
add esi, edx
cmp esi, dword [eax]
jb 0x524539
call fcn.005b8b18
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x1c]
mov edx, 1
shl edx, cl
or dword [eax], edx
add dword [esp + 0x18], 0x28
add ebx, 1
cmp ebx, esi
jl 0x5244da
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.0052b880
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [esp + 0x60], 0
je 0x52458a
push eax
call fcn.0059b877
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x40]
add eax, 0x38
test ecx, ecx
je 0x5245ac
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5245c9
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5245a1
jmp 0x5245c9
mov ecx, dword [eax]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
jne 0x5245c2
mov eax, ecx
mov ecx, dword [ecx]
and ecx, 0xfffffffe
cmp eax, dword [ecx + 8]
je 0x5245b6
cmp dword [eax + 8], ecx
je 0x5245c9
mov eax, ecx
test eax, eax
je 0x5245d2
add eax, 0xffffffc8
jmp 0x5245d4
xor eax, eax
mov ebx, eax
cmp ebx, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
jne 0x5243c8
mov ecx, dword [esp + 0x40]
push ecx
call dword [0x5fd188]
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 0xc