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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a0378
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
test esi, esi
je 0x52580f
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x52580f
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x52580f
push ebx
push ebp
lea ecx, [esp + 0x3c]
push edi
push ecx
push eax
call dword [0x5e91ac]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
push 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call dword [0x5e9170]
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
sub ecx, eax
push 0xfffffffffffffffb
lea edx, [esp + 0x24]
add edi, ecx
push 0xfffffffffffffffc
push edx
mov dword [esp + 0x34], edi
call dword [0x5e921c]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esi + 0x6c]
mov edi, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x54]
sub ebx, ebp
call fcn.0055b7ea
mov eax, dword [esi + 0x40]
mov dword [esp + 0x6c], 0
test eax, eax
je 0x52575b
jmp 0x5256ae
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov ebp, dword [eax + 8]
lea eax, [esi + 0x5c]
push 1
mov edx, dword [ebp]
push eax
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x58]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x1c]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
lea edx, [eax + edi]
cmp edx, dword [esp + 0x28]
jle 0x5256f5
mov edx, dword [esp + 0x20]
cmp edi, edx
jne 0x5256ef
mov eax, dword [esp + 0x28]
sub eax, edx
jmp 0x5256f5
mov edi, edx
lea ebx, [ebx + ecx + 5]
mov ecx, dword [esi + 0x60]
lea edx, [eax + edi]
mov dword [esp + 0x30], edi
lea edi, [ebp + 0x30]
lea eax, [ecx + ebx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call dword [0x5e91c8]
test eax, eax
jne 0x525748
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [edi], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + 4], edx
mov edx, dword [ebp]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov ecx, ebp
call dword [edx + 0x30]
mov eax, dword [esp + 0x14]
lea edi, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5256aa
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x60]
mov edx, dword [esp + 0x24]
mov edi, dword [ecx + 8]
lea ecx, [eax + 5]
mov eax, dword [esp + 0x2c]
sub eax, edx
cdq
idiv ecx
mov ebx, eax
mov eax, dword [edi + 0x3c]
cdq
idiv ecx
sub eax, ebx
mov ebp, eax
test ebp, ebp
jle 0x5257f4
lea edi, [esi + 0x78]
test edi, edi
je 0x525792
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x5257d7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x30]
push edx
push eax
call dword [0x5e91ac]
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push ecx
call dword [0x5e921c]
push 2
call dword [0x5e9170]
mov edx, dword [esp + 0x38]
push 1
sub edx, eax
lea eax, [esp + 0x34]
push esi
dec edx
push eax
push 0x50000001
mov ecx, edi
mov dword [esp + 0x40], edx
call fcn.0056f4a5
mov eax, dword [esi + 0x60]
push 1
add eax, 5
mov ecx, esi
imul eax, ebp
push eax
push 0
push 1
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
call fcn.00554f2f
lea ecx, [esp + 0x50]
mov dword [esi + 0x64], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.0055b85c
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret