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

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [ebx + 0xa8], 0
mov dword [esp + 0x24], edi
lea ecx, [ecx]
xor esi, esi
mov dword [esp + 0x2c], esi
jmp 0x5f37b0
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x7c]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x80]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x58], eax
lea eax, [esi + ecx]
imul eax, dword [ebx + 0x58]
lea ecx, [edi + edx]
imul ecx, dword [ebx + 0x54]
add dword [ebx + 0x50], eax
add ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x4c], ecx
mov eax, dword [ebx + 0x24]
add eax, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x58]
mov edi, dword [ebx + 0x50]
add ebp, edi
mov esi, dword [ebx + 0x54]
mov edx, dword [ebx + 0x18]
add esi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
add eax, edx
cmp ebp, dword [esp + 0x1c]
jle 0x5f381a
mov ebp, dword [esp + 0x1c]
cmp esi, eax
jle 0x5f3820
mov esi, eax
mov eax, dword [ebx + 0x1c]
cmp edi, eax
jge 0x5f382c
mov dword [ebx + 0x50], eax
mov edi, eax
cmp ecx, edx
jge 0x5f3838
mov dword [ebx + 0x4c], edx
mov ecx, edx
mov edi, dword [ebx + 0x50]
sub ebp, edi
sub esi, ecx
mov dword [ebx + 0x54], esi
mov dword [ebx + 0x58], ebp
test ebp, ebp
jge 0x5f384d
mov dword [ebx + 0x58], 0
mov eax, esi
test eax, eax
jns 0x5f385c
mov dword [ebx + 0x54], 0
xor eax, eax
cmp dword [ebx + 0x58], 0
jle 0x5f3a75
test eax, eax
jle 0x5f3a75
xor ecx, ecx
xor al, al
mov dword [esp + 0x18], ecx
mov byte [esp + 0x13], al
cmp byte [ebx + 0xaf], cl
jbe 0x5f3915
mov ecx, dword [esp + 0x20]
lea ebx, [ebx]
movzx eax, al
imul edx, eax, 0x68
add edx, dword [ecx + 0xb0]
mov dword [esp + 0x1c], edx
movzx eax, byte [edx + 0x28]
movzx ebp, byte [edx + 0x29]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
mov edx, dword [eax + 0x44]
mov esi, dword [eax + 0x3c]
mov ebx, dword [eax + 0x40]
mov edi, dword [eax + 0x48]
add edi, ebx
lea eax, [esi + edx]
mov edx, dword [esp + 0x28]
test edx, 0xfffffffe
jne 0x5f38d5
sub ebx, edx
sub edi, edx
inc ebx
inc edi
sar ebx, 1
sar edi, 1
test ebp, 0xfffffffe
jne 0x5f38e7
sub esi, ebp
sub eax, ebp
inc esi
inc eax
sar esi, 1
sar eax, 1
mov edx, dword [esp + 0x1c]
sub eax, esi
sub edi, ebx
mov dword [edx + 0x3c], esi
mov dword [edx + 0x40], ebx
mov dword [edx + 0x44], eax
mov al, byte [esp + 0x13]
inc al
mov dword [edx + 0x48], edi
mov byte [esp + 0x13], al
cmp al, byte [ecx + 0xaf]
jb 0x5f3890
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov al, byte [ebx + 0xae]
test al, al
je 0x5f3a67
mov edx, dword [ebx + 0xb8]
movzx eax, al
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
movzx eax, byte [edx + 0x29]
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov ebx, dword [eax + 0x44]
mov ebp, dword [eax + 0x48]
mov edi, dword [eax + 0x3c]
add ebx, edi
mov esi, dword [eax + 0x40]
add ebp, esi
mov eax, dword [esp + 0x1c]
test eax, 0xfffffffe
jne 0x5f396b
sub esi, eax
sub ebp, eax
inc esi
inc ebp
sar esi, 1
sar ebp, 1
mov eax, dword [esp + 0x18]
test eax, 0xfffffffe
jne 0x5f3980
sub edi, eax
sub ebx, eax
inc edi
inc ebx
sar edi, 1
sar ebx, 1
mov edx, dword [esp + 0x14]
sub ebp, esi
sub ebx, edi
mov dword [esp + 0x18], ebx
sub esi, dword [edx + 0x48]
sub edi, dword [edx + 0x44]
lea eax, [esi + ebp]
mov dword [esp + 0x30], eax
lea eax, [edi + ebx]
mov dword [esp + 0x34], eax
mov ebx, edx
test esi, esi
jns 0x5f39b4
not esi
mov eax, esi
mov esi, dword [ebx + 0x50]
cdq
idiv esi
not eax
jmp 0x5f39bc
mov eax, esi
mov esi, dword [ebx + 0x50]
cdq
idiv esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
test eax, eax
jg 0x5f39cf
cdq
idiv esi
mov esi, eax
jmp 0x5f39d6
dec eax
cdq
idiv esi
lea esi, [eax + 1]
test edi, edi
jns 0x5f39ec
not edi
mov eax, edi
mov edi, dword [esp + 0x14]
cdq
idiv dword [edi + 0x4c]
mov edi, eax
not edi
jmp 0x5f39f8
mov eax, edi
mov edi, dword [esp + 0x14]
cdq
idiv dword [edi + 0x4c]
mov edi, eax
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
test eax, eax
jg 0x5f3a0c
cdq
idiv dword [ebx + 0x4c]
mov edx, eax
jmp 0x5f3a14
dec eax
cdq
idiv dword [ebx + 0x4c]
lea edx, [eax + 1]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test ebp, ebp
jne 0x5f3a22
mov esi, eax
test ebx, ebx
jne 0x5f3a28
mov edx, edi
sub esi, eax
sub edx, edi
mov eax, edx
imul eax, esi
add ecx, eax
cmp eax, 1
jle 0x5f3a4a
inc edx
inc esi
sar edx, 1
sar esi, 1
mov eax, edx
imul eax, esi
add ecx, eax
cmp eax, 1
jg 0x5f3a38
mov edx, dword [esp + 0x14]
add edx, 0x84
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], edx
jne 0x5f3934
mov ebx, dword [esp + 0x20]
cmp ecx, dword [ebx + 0xa8]
jle 0x5f3a75
mov dword [ebx + 0xa8], ecx
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
inc esi
mov dword [esp + 0x2c], esi
cmp esi, 2
jl 0x5f37b0
inc edi
mov dword [esp + 0x24], edi
cmp edi, 2
jl 0x5f37a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret