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

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
xor ebx, ebx
cmp eax, ebx
je 0x592539
push eax
call fcn.0059b05f
add esp, 4
mov edx, dword [esi + 0x18]
cmp edx, ebx
mov dword [esi + 0x70], ebx
je 0x59273c
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x59273c
mov ecx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
sar ecx, 3
and ecx, 7
sar ebp, 3
and ebp, 7
push edi
lea edi, [eax + ecx]
mov eax, dword [esi + 0x7c]
sub eax, ebp
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x80]
sub eax, ecx
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x5c]
add eax, 7
and eax, 0xfffffff8
add edx, ebp
add eax, 0x20
cmp dword [esi + 0x3c], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
je 0x5925be
sub dword [esi + 0x84], eax
lea ebx, [eax + eax]
add ebp, eax
add ecx, eax
add edx, ebx
add edi, ebx
sub dword [esi + 0x88], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ecx
lea ecx, [edx + 7]
lea eax, [edi + 7]
sar eax, 3
add eax, 1
sar ecx, 3
add ecx, 1
mov dword [esi + 0x78], eax
imul eax, ecx
add eax, eax
add eax, eax
push eax
mov dword [esi + 0x74], ecx
call fcn.0059b05a
mov ecx, dword [esi + 0x78]
imul ecx, dword [esi + 0x74]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
mov dword [esi + 0x70], eax
call fcn.005c0060
add esp, 0x10
lea edx, [esi + 0x20]
lea eax, [esi + 0x34]
xor ecx, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + ecx*4 + 0x20]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
test eax, eax
jbe 0x5926d0
add edi, 4
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov ecx, dword [edi - 4]
mov edx, dword [edi + 4]
lea edx, [edx + ebp - 0x40000000]
lea ebx, [ecx + ebp - 0x40000000]
cmp edx, ebx
mov dword [esp + 0x14], edx
jle 0x5926be
mov ebp, dword [esp + 0x30]
mov eax, dword [edi]
lea eax, [eax + ebp - 0x40000000]
mov ebp, dword [esp + 0x10]
sar eax, 3
imul eax, dword [esi + 0x74]
mov ecx, ebx
sar ecx, 3
add eax, ecx
add edx, 0xffffffff
sar edx, 3
lea eax, [ebp + eax*4]
add eax, dword [esi + 0x70]
cmp ecx, edx
mov dword [esp + 0x1c], edx
je 0x5926b2
mov dl, cl
add dl, dl
add dl, dl
add dl, dl
sub dl, bl
mov ebx, dword [esp + 0x1c]
add dl, 8
add byte [eax], dl
add ecx, 1
add eax, 4
cmp ecx, ebx
jge 0x5926ac
mov edx, ebx
sub edx, ecx
add byte [eax], 8
add eax, 4
sub edx, 1
jne 0x5926a1
add bl, bl
add bl, bl
add bl, bl
mov cl, byte [esp + 0x14]
mov ebp, dword [esp + 0x2c]
sub cl, bl
add byte [eax], cl
add edi, 0x10
sub dword [esp + 0x18], 1
jne 0x592630
mov ecx, dword [esp + 0x10]
add ecx, 1
cmp ecx, 2
mov dword [esp + 0x10], ecx
jb 0x592611
cmp dword [esi + 0x3c], 0
je 0x592730
mov ebx, dword [esi + 0x70]
xor ebp, ebp
cmp dword [esi + 0x78], ebp
jle 0x592730
xor edi, edi
cmp dword [esi + 0x74], edi
jle 0x592722
lea eax, [ebx + 1]
lea ebx, [ebx]
movzx edx, byte [eax - 1]
mov ecx, 0x40
sub ecx, edx
movzx edx, byte [eax]
cmp edx, ecx
jge 0x592714
mov ecx, edx
mov byte [eax + 1], cl
add edi, 1
add eax, 4
cmp edi, dword [esi + 0x74]
jl 0x592700
mov eax, dword [esi + 0x74]
add ebp, 1
cmp ebp, dword [esi + 0x78]
lea ebx, [ebx + eax*4]
jl 0x5926f0
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 8
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret 8