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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [esi + 0x44]
mov ecx, eax
imul ecx, ecx, 0x1600
mov ecx, dword [ecx + edx + 0x15c8]
xor edx, edx
div dword [esi + 0x18]
push edi
mov edi, dword [esp + 0x6c]
mov ebx, dword [edi + 0x18]
mov ebp, dword [edi]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, edi
mov dword [esp + 0x20], ebx
imul ecx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
add ecx, eax
mov dword [esp + 0x10], ecx
cmp ecx, ebp
jg 0x56da9e
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x10]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x6c]
lea ecx, [edx + 1]
imul ecx, edi
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x56dac3
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 4]
mov dword [edx], eax
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x38]
mov esi, dword [esi + 8]
mov ecx, edx
imul ecx, eax
add ecx, esi
mov dword [esp + 0x74], ecx
cmp ecx, edi
jg 0x56daed
mov dword [esp + 0x74], edi
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
inc eax
imul eax, edx
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
add eax, esi
mov dword [esp + 0x78], eax
cmp eax, ecx
jl 0x56db0c
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
mov dword [edx], eax
mov edx, dword [esp + 0x8c]
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x80]
mov dword [edx], eax
mov edx, dword [esp + 0x84]
mov dword [ecx], SysReAllocString
mov dword [edx], SysReAllocString
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x10], eax
jbe 0x56de1f
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
add eax, 4
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x24]
mov edi, dword [ecx + edx*4]
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov esi, dword [ebx + 4]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
lea eax, [edx + esi - 1]
cdq
idiv esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x30], eax
lea eax, [ecx + esi - 1]
cdq
idiv esi
mov edx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [edx]
cmp eax, dword [esp + 0x28]
jbe 0x56dbbd
mov dword [esp + 0x28], eax
lea ebp, [eax - 1]
mov edx, 1
mov ecx, ebp
rol edx, cl
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edx
test eax, eax
je 0x56dded
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
cdq
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
cdq
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], edx
cdq
mov dword [esp + 0x58], eax
mov eax, esi
mov dword [esp + 0x5c], edx
cdq
add ecx, 0x3ac
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x1c], ecx
jmp 0x56dc28
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0x84]
mov esi, dword [ecx]
mov dword [edi], eax
lea ecx, [eax + ebp]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov dword [edi + 4], esi
add edi, 8
lea ecx, [esi + ebp]
imul eax, dword [ebx]
mov edx, 1
shl edx, cl
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x80]
mov ecx, dword [edi]
imul edx, dword [ebx + 4]
cmp ecx, eax
jge 0x56dc6a
mov eax, ecx
mov dword [edi], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
cmp ecx, edx
jge 0x56dc7b
mov edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x18]
cdq
mov edi, eax
mov eax, dword [esp + 0x48]
mov ebx, edx
mov edx, dword [esp + 0x4c]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
mov ecx, ebp
call fcn.006831f0
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
mov ecx, ebp
call fcn.006831f0
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
mov ecx, ebp
call fcn.006831f0
mov edx, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
add eax, edi
adc edx, ebx
sub eax, 1
sbb edx, 0
mov ecx, ebp
call fcn.006831f0
mov edi, dword [esp + 0x34]
mov ebx, eax
mov ecx, esi
sar edi, cl
mov eax, 1
shl eax, cl
mov dword [esp + 0x44], ebx
shl edi, cl
cdq
mov ecx, eax
mov dword [esp + 0x3c], edx
mov eax, ebx
cdq
add ecx, eax
mov eax, dword [esp + 0x3c]
adc eax, edx
sub ecx, 1
sbb eax, 0
mov edx, eax
mov eax, ecx
mov ecx, esi
call fcn.006831f0
mov ebx, dword [esp + 0x40]
mov ecx, edx
mov edx, eax
mov ecx, esi
shl edx, cl
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x30], ebx
jne 0x56dd4a
xor eax, eax
jmp 0x56dd90
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
cdq
mov ecx, eax
mov dword [esp + 0x40], edx
mov eax, ebx
mov ebx, dword [esp + 0x2c]
cdq
add ecx, eax
mov eax, dword [esp + 0x40]
adc eax, edx
sub ecx, 1
sbb eax, 0
mov edx, eax
mov eax, ecx
mov ecx, ebx
call fcn.006831f0
mov edx, dword [esp + 0x30]
mov ecx, ebx
sar edx, cl
shl eax, cl
shl edx, cl
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, cl
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x34], ecx
jne 0x56dd9e
xor edx, edx
jmp 0x56dda4
sub edx, edi
mov ecx, esi
sar edx, cl
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
imul edx, eax
mov eax, dword [esp + 0x88]
add ecx, 8
mov dword [esp + 0x7c], ecx
cmp edx, dword [eax]
jbe 0x56ddc4
mov dword [eax], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x70]
add dword [esp + 0x1c], 4
mov ebx, dword [esp + 0x20]
dec ebp
inc eax
ror edx, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], eax
cmp eax, dword [ecx]
jb 0x56dc20
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x6c]
add dword [esp + 0x70], 0x438
inc eax
add ebx, 0x34
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
cmp eax, dword [edx + 0x10]
jb 0x56db60
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x8c]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret