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

Disassembly:
push edi
push esi
push ebp
sub esp, 0x40
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edi, dword [ecx]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x74]
mov ebp, dword [ebp]
mov esi, dword [ebx]
mov edx, dword [edx]
mov ebx, dword [eax]
cmp edx, ebx
jge 0x581bd7
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], edx
dec ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
mov eax, 1
mov dword [esp + 0x24], eax
push eax
push eax
push edx
push ecx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push edx
push 0x22
push edi
push 0xb83d80
call fcn.00610460
add esp, 0x24
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp ecx, ebx
jle 0x581be2
push edi
push 0xb83d80
call fcn.00610958
add esp, 8
mov ebx, dword [esp + 0x18]
add esp, 0x40
pop ebp
pop esi
pop edi
ret
mov dword [esp + 4], 0
mov dword [esp + 0x2c], ecx
cmp ebx, edx
cmovl edx, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
sub edx, ecx
mov dword [esp + 8], edi
inc edx
mov dword [esp + 0x10], edx
mov eax, esi
shl eax, 4
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
mov ebx, ebp
sub ebx, esi
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov ebx, dword [ebx]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp]
mov ebx, dword [ebx]
mov ecx, ebx
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov esi, dword [edx + 0x10]
lea ebx, [ebp + eax]
imul esi, ebx
mov ebp, dword [edx + 4]
add ebp, edi
mov dword [esp + 0x38], esi
add esi, ebp
mov dword [esp + 4], esi
mov esi, dword [ecx + 4]
add esi, edi
mov edi, dword [ecx + 0x10]
imul edi, ebx
lea ebx, [esi + edi]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x34]
jge 0x581d36
cmp dword [esp + 0xc], 6
jle 0x581cfa
mov edx, dword [esp + 0x38]
lea ecx, [ebp + edx + 0xc]
mov dword [esp], ecx
lea ebx, [esi + edi + 0xc]
cmp ebx, ecx
jbe 0x581ca3
mov edx, dword [esp + 0x30]
neg edx
add edx, dword [esp + 0x34]
shl edx, 4
sub ecx, ebx
neg ecx
cmp edx, ecx
jbe 0x581cbe
cmp ebx, dword [esp]
jae 0x581cfa
mov edx, dword [esp]
mov ecx, dword [esp + 0x30]
sub edx, ebx
neg ecx
add ecx, dword [esp + 0x34]
shl ecx, 4
cmp edx, ecx
jb 0x581cfa
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
mov ebx, dword [edx + esi + 0xc]
mov dword [edx + ebp + 0xc], ebx
inc ecx
add edx, 0x10
cmp ecx, edi
jb 0x581cce
inc eax
cmp eax, dword [esp + 0x10]
jae 0x581e2f
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ecx, dword [ecx]
mov edx, dword [edx]
jmp 0x581c2f
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
mov ebx, dword [edx + esi + 0xc]
mov dword [edx + ebp + 0xc], ebx
inc ecx
add edx, 0x10
cmp ecx, edi
jb 0x581d0a
inc eax
cmp eax, dword [esp + 0x10]
jae 0x581e2f
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov ecx, dword [ecx]
mov edx, dword [edx]
jmp 0x581c2f
inc eax
cmp eax, dword [esp + 0x10]
jb 0x581c2f
jmp 0x581e38
mov edi, dword [esp + 8]
jmp 0x581bc9
mov edi, dword [esp + 8]
jmp 0x581bc9