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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x7c]
lea eax, [ebp - 6]
push esi
xor edx, edx
test eax, eax
push edi
jle 0x56b286
mov edx, dword [esp + 0x8c]
lea edx, [edx + edx*2]
add edx, edx
mov dword [esp + 0x68], edx
mov esi, dword [esp + 0x88]
lea edx, [ecx*4]
sub edx, ecx
neg edx
add edx, edx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x7c]
add edx, 8
mov dword [esp + 0x40], edx
lea eax, [ecx + ecx]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x50], edx
mov edx, eax
lea ebp, [ecx + ecx*2]
sub edx, ebp
mov dword [esp + 0x54], edx
mov edx, eax
sub esi, eax
lea ebp, [ecx*4]
sub edx, ebp
mov dword [esp + 0x58], edx
lea edx, [ecx + ecx*4]
sub eax, edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x84]
add eax, 0xfffffffa
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
add edx, 1
xor edi, edi
lea eax, [edx + edx*2]
add eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x50]
lea eax, [esi + ecx*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
add eax, esi
lea ebp, [edx + esi]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
add edx, esi
add eax, esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x18], eax
lea eax, [edx - 6]
test eax, eax
mov dword [esp + 0x78], esi
mov dword [esp + 0x38], 0
jle 0x56b1c1
lea esi, [edi + ebx*2]
lea eax, [ebx + ebx*2]
add eax, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x7c]
lea edi, [edi + ebx*4]
add esi, ebx
lea esi, [esi + eax + 8]
add edi, ebx
lea edi, [edi + eax + 8]
mov eax, 0xfffffffc
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, 4
sub eax, ebx
mov dword [esp + 0x28], eax
mov eax, 8
sub eax, ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x40]
mov eax, 0xc
sub eax, ebx
mov dword [esp + 0x30], eax
mov eax, 0xfffffff8
sub eax, ebx
mov dword [esp + 0x20], eax
lea eax, [edx - 6]
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
add edx, 1
mov dword [esp + 0x34], ecx
lea eax, [edx + edx*2]
add ecx, ebx
add eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov edi, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
mov dword [eax + ecx], edx
mov edx, dword [ebp]
mov eax, dword [esp + 0x24]
mov dword [eax + ecx], edx
mov edx, dword [esp + 0x78]
mov eax, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [eax + ecx], edx
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edx, dword [esp + 0x2c]
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov eax, dword [esp + 0x30]
mov dword [eax + ecx], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov dword [ecx - 8], edx
mov edx, dword [ebp + 4]
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 4]
mov dword [ecx], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 4]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x20]
mov dword [edx + esi], eax
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov dword [edx + esi], eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x10]
mov dword [ecx + ebx], edx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x28]
mov dword [eax + esi], edx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x2c]
mov dword [edx + esi], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x30]
mov dword [eax + esi], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov dword [esi - 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esi - 4], edx
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esi], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0xc]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x20]
mov dword [edx + edi], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx + edi], eax
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov dword [esi + ebx], edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
mov dword [eax + edi], edx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x2c]
mov dword [edx + edi], eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x30]
mov dword [eax + edi], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x14]
mov dword [edi - 8], edx
mov edx, dword [ebp + 0x14]
mov dword [edi - 4], edx
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 0x14]
mov dword [edi], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x14]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x14]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 0x14]
mov dword [edi + 0xc], edx
mov edx, 0x18
add dword [esp + 0x78], edx
add dword [esp + 0x10], edx
add dword [esp + 0x14], edx
add dword [esp + 0x18], edx
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x34], eax
add ebp, edx
add ecx, eax
add esi, eax
add edi, eax
sub dword [esp + 0x44], 1
jne 0x56b000
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x80]
imul eax, ebx
sub edx, dword [esp + 0x38]
add eax, edi
add eax, dword [esp + 0x7c]
test edx, edx
mov dword [esp + 0x60], edx
jle 0x56b25a
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
sub edi, ebp
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x10]
sub edi, ebp
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x14]
sub edi, ebp
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x18]
sub edx, ebp
sub edi, ebp
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x78], edi
mov edi, dword [edx + ebp]
mov dword [eax], edi
mov edi, dword [ebp]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x48]
mov edi, dword [edi + ebp]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x44]
mov edi, dword [edi + ebp]
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x38]
mov edi, dword [edi + ebp]
mov dword [eax + 0x10], edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi + ebp]
mov dword [eax + 0x14], edi
add eax, ebx
add ebp, 4
sub dword [esp + 0x78], 1
jne 0x56b217
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x68]
add esi, dword [esp + 0x64]
add dword [esp + 0x40], eax
add edi, eax
sub dword [esp + 0x4c], 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], edi
jne 0x56af34
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x80]
test esi, esi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x78], edx
jle 0x56b2f1
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], esi
cmp edx, ebp
jge 0x56b2dd
mov ebp, edx
imul ebp, ecx
mov esi, ecx
sub eax, ebp
neg esi
add eax, dword [esp + 0x88]
lea esp, [esp]
mov ebp, dword [eax]
mov dword [edi + edx*4], ebp
mov ebp, dword [esp + 0x84]
add edx, 1
add eax, esi
cmp edx, ebp
jl 0x56b2c0
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x8c]
add edi, ebx
sub dword [esp + 0x74], 1
mov dword [esp + 0x7c], eax
jne 0x56b2a3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x1c