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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
lea eax, [esi - 6]
xor ebp, ebp
test eax, eax
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x14], eax
jle 0x56ade5
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa8]
add eax, 6
mov dword [esp + 0x78], eax
lea ecx, [edx + 6]
mov eax, 2
sub eax, edi
lea ebx, [edx + eax*2]
add ebx, eax
mov dword [esp + 0x5c], ebx
mov ebx, edx
mov dword [esp + 0x68], ecx
mov ecx, edx
lea eax, [edi + edi*4]
sub edx, eax
mov eax, 6
sub eax, edi
mov dword [esp + 0x84], eax
mov eax, edi
neg eax
mov dword [esp + 0x80], eax
mov eax, edi
neg eax
add eax, eax
mov dword [esp + 0x88], eax
add edx, 6
mov dword [esp + 0x58], edx
lea ebp, [edi*4]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x94], eax
lea eax, [edi + edi*4]
mov edx, edi
sub edx, eax
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x14]
add edx, 0xffffffff
mov eax, 0xaaaaaaab
mul edx
lea esi, [edi*4]
sub esi, edi
shr edx, 2
add edx, 1
neg esi
sub ebx, ebp
add esi, esi
sub ecx, edi
add ebx, 6
lea eax, [edx + edx*2]
add eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x98], eax
lea ebx, [ebx]
mov ebp, dword [esp + 0x80]
add ebp, ecx
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x88]
add ebp, ecx
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x94]
add ebp, ecx
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x8c]
add ebp, ecx
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0xac]
lea eax, [ecx + edi]
mov dword [esp + 0x4c], eax
add ebp, 0xfffffffa
test ebp, ebp
mov eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
jle 0x56ac9e
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1c], ebx
lea ebx, [edx + ecx]
lea edx, [eax + 2]
lea esi, [esi + edx*2]
add esi, edx
mov edx, dword [esp + 0xa8]
add esi, edx
lea edi, [edi + eax*4]
add edi, eax
lea edi, [edi + edx + 6]
mov edx, 0xfffffffd
sub edx, eax
mov dword [esp + 0x7c], edx
mov edx, 3
sub edx, eax
mov dword [esp + 0x64], edx
add ecx, 6
mov dword [esp + 0x20], ecx
lea ecx, [eax + eax*2]
mov edx, 6
sub edx, eax
mov dword [esp + 0x28], edx
add ecx, ecx
mov edx, 9
sub edx, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x68]
mov edx, 0xfffffffa
sub edx, eax
mov dword [esp + 0x30], ecx
add ecx, eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x6c], edx
add eax, 0xfffffffa
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
add edx, 1
mov dword [esp + 0x14], edx
lea edx, [edx + edx*2]
add edx, edx
mov dword [esp + 0x24], edx
mov edi, edi
mov eax, dword [esp + 0x4c]
movzx edx, word [eax]
mov eax, dword [esp + 0x6c]
mov word [eax + ecx], dx
mov edx, dword [esp + 0x4c]
movzx edx, byte [edx + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0x3c]
movzx edx, word [eax]
mov eax, dword [esp + 0x7c]
mov word [eax + ecx], dx
mov edx, dword [esp + 0x3c]
movzx edx, byte [edx + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0x44]
movzx edx, word [eax]
mov eax, dword [esp + 0x30]
mov word [eax], dx
mov edx, dword [esp + 0x44]
movzx edx, byte [edx + 2]
mov byte [eax + 2], dl
mov eax, dword [esp + 0x34]
movzx edx, word [eax]
mov eax, dword [esp + 0x64]
mov word [eax + ecx], dx
mov edx, dword [esp + 0x34]
movzx edx, byte [edx + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0x50]
movzx edx, word [eax]
mov eax, dword [esp + 0x28]
mov word [eax + ecx], dx
mov edx, dword [esp + 0x50]
movzx edx, byte [edx + 2]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 0x38]
movzx edx, word [eax]
mov eax, dword [esp + 0x2c]
mov word [eax + ecx], dx
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + 2]
mov byte [eax + ecx + 2], dl
movzx eax, word [ebp - 3]
movzx edx, byte [ebp - 1]
mov word [ecx - 6], ax
mov eax, dword [esp + 0x20]
mov byte [ecx - 4], dl
movzx edx, word [eax - 3]
add eax, 0xfffffffd
movzx eax, byte [eax + 2]
mov word [ecx - 3], dx
movzx edx, word [ebx - 3]
mov byte [ecx - 1], al
movzx eax, byte [ebx - 1]
mov word [ecx], dx
mov byte [ecx + 2], al
mov eax, dword [esp + 0x18]
movzx edx, word [eax - 3]
add eax, 0xfffffffd
movzx eax, byte [eax + 2]
mov word [ecx + 3], dx
mov byte [ecx + 5], al
mov eax, dword [esp + 0x1c]
movzx edx, word [eax - 3]
add eax, 0xfffffffd
movzx eax, byte [eax + 2]
mov word [ecx + 6], dx
mov byte [ecx + 8], al
mov eax, dword [esp + 0x10]
movzx edx, word [eax - 3]
add eax, 0xfffffffd
movzx eax, byte [eax + 2]
mov word [ecx + 9], dx
movzx edx, word [ebp]
mov byte [ecx + 0xb], al
mov eax, dword [esp + 0x6c]
mov word [eax + esi], dx
movzx edx, byte [ebp + 2]
mov byte [eax + esi + 2], dl
mov eax, dword [esp + 0x20]
movzx edx, word [eax]
mov eax, dword [esp + 0x7c]
mov word [eax + esi], dx
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + 2]
mov byte [eax + esi + 2], dl
movzx edx, word [ebx]
mov eax, dword [esp + 0xa4]
mov word [ecx + eax], dx
movzx edx, byte [ebx + 2]
mov byte [ecx + eax + 2], dl
mov eax, dword [esp + 0x18]
movzx edx, word [eax]
mov eax, dword [esp + 0x64]
mov word [eax + esi], dx
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + 2]
mov byte [eax + esi + 2], dl
mov eax, dword [esp + 0x1c]
movzx edx, word [eax]
mov eax, dword [esp + 0x28]
mov word [eax + esi], dx
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + 2]
mov byte [eax + esi + 2], dl
mov eax, dword [esp + 0x10]
movzx edx, word [eax]
mov eax, dword [esp + 0x2c]
mov word [eax + esi], dx
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + 2]
mov byte [eax + esi + 2], dl
movzx eax, word [ebp + 3]
mov word [esi - 6], ax
movzx edx, byte [ebp + 5]
mov eax, dword [esp + 0x20]
mov byte [esi - 4], dl
movzx edx, word [eax + 3]
mov word [esi - 3], dx
movzx edx, word [ebx + 3]
add eax, 3
movzx eax, byte [eax + 2]
mov byte [esi - 1], al
movzx eax, byte [ebx + 5]
mov word [esi], dx
mov byte [esi + 2], al
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 3]
mov word [esi + 3], dx
add eax, 3
movzx eax, byte [eax + 2]
mov byte [esi + 5], al
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 3]
mov word [esi + 6], dx
add eax, 3
movzx eax, byte [eax + 2]
mov byte [esi + 8], al
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 3]
mov word [esi + 9], dx
mov edx, dword [esp + 0x6c]
add eax, 3
movzx eax, byte [eax + 2]
mov byte [esi + 0xb], al
lea eax, [edx + edi]
movzx edx, word [ebp + 6]
mov word [eax], dx
movzx edx, byte [ebp + 8]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x20]
movzx edx, word [edx + 6]
mov eax, dword [esp + 0x7c]
mov word [eax + edi], dx
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + 8]
add eax, edi
mov byte [eax + 2], dl
mov eax, dword [esp + 0xa4]
movzx edx, word [ebx + 6]
add eax, esi
mov word [eax], dx
movzx edx, byte [ebx + 8]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 6]
mov eax, dword [esp + 0x64]
mov word [eax + edi], dx
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + 8]
mov byte [eax + edi + 2], dl
mov edx, dword [esp + 0x1c]
movzx edx, word [edx + 6]
add eax, edi
mov eax, dword [esp + 0x28]
mov word [eax + edi], dx
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + 8]
mov byte [eax + edi + 2], dl
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 6]
add eax, edi
mov eax, dword [esp + 0x2c]
mov word [eax + edi], dx
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + 8]
mov byte [eax + edi + 2], dl
movzx edx, byte [ebp + 0xb]
add eax, edi
movzx eax, word [ebp + 9]
mov word [edi - 6], ax
mov eax, dword [esp + 0x20]
mov byte [edi - 4], dl
movzx edx, word [eax + 9]
mov word [edi - 3], dx
movzx edx, byte [eax + 0xb]
mov byte [edi - 1], dl
movzx edx, word [ebx + 9]
mov word [edi], dx
movzx edx, byte [ebx + 0xb]
mov byte [edi + 2], dl
mov edx, dword [esp + 0x18]
movzx edx, word [edx + 9]
mov word [edi + 3], dx
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + 0xb]
mov byte [edi + 5], dl
mov edx, dword [esp + 0x1c]
movzx edx, word [edx + 9]
mov word [edi + 6], dx
mov edx, dword [esp + 0x1c]
movzx edx, byte [edx + 0xb]
add dword [esp + 0x4c], 0x12
add dword [esp + 0x3c], 0x12
mov byte [edi + 8], dl
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 9]
mov word [edi + 9], dx
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + 0xb]
mov byte [edi + 0xb], dl
mov edx, 0x12
add dword [esp + 0x44], edx
add dword [esp + 0x34], edx
add dword [esp + 0x18], edx
add dword [esp + 0x50], edx
add dword [esp + 0x1c], edx
add dword [esp + 0x38], edx
add dword [esp + 0x10], edx
add eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
add dword [esp + 0x30], eax
add ebp, 0x12
add ebx, edx
add ecx, eax
add esi, eax
add edi, eax
sub dword [esp + 0x14], 1
jne 0x56a900
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x54]
mov ebp, dword [esp + 0x24]
imul ebp, dword [esp + 0xa4]
add ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0xac]
sub ebx, dword [esp + 0x24]
add ebp, dword [esp + 0xa8]
test ebx, ebx
mov dword [esp + 0x70], ebx
jle 0x56ad9f
mov edx, dword [esp + 0x4c]
sub edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
sub edx, eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
sub edx, eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
lea esi, [ebp + 6]
sub edx, eax
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + eax]
mov word [ebp], bx
mov ebx, dword [esp + 0x14]
movzx ebx, byte [ebx + eax + 2]
mov byte [ebp + 2], bl
movzx ebx, word [eax]
mov word [esi - 3], bx
movzx ebx, byte [eax + 2]
mov byte [esi - 1], bl
mov ebx, dword [esp + 0x24]
movzx ebx, word [ebx + eax]
mov word [esi], bx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + eax + 2]
mov byte [esi + 2], bl
mov ebx, dword [esp + 0x30]
movzx ebx, word [ebx + eax]
mov word [esi + 3], bx
mov ebx, dword [esp + 0x30]
movzx ebx, byte [ebx + eax + 2]
mov byte [esi + 5], bl
mov ebx, dword [esp + 0x2c]
movzx ebx, word [ebx + eax]
mov word [esi + 6], bx
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + eax + 2]
mov byte [esi + 8], bl
movzx ebx, word [edx + eax]
mov word [esi + 9], bx
movzx ebx, byte [edx + eax + 2]
mov byte [esi + 0xb], bl
mov ebx, dword [esp + 0xa4]
add ebp, ebx
add esi, ebx
add eax, 3
sub dword [esp + 0x28], 1
jne 0x56ad01
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x90]
add dword [esp + 0x5c], esi
add dword [esp + 0x58], esi
add dword [esp + 0x68], esi
add dword [esp + 0x48], eax
add dword [esp + 0x78], eax
add ecx, esi
add ebx, esi
sub edx, 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x60], edx
jne 0x56a7e0
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0xb0]
mov edx, dword [esp + 0xac]
test edx, edx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x40], ecx
jle 0x56ae64
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], edx
cmp ebp, esi
jge 0x56ae47
mov ebx, ebp
imul ebx, edi
sub eax, ebx
add eax, dword [esp + 0xb4]
lea ecx, [ecx + ebp*2]
mov edx, edi
add ecx, ebp
neg edx
sub esi, ebp
mov bx, word [eax]
mov word [ecx], bx
mov bl, byte [eax + 2]
mov byte [ecx + 2], bl
add eax, edx
add ecx, 3
sub esi, 1
jne 0x56ae22
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0xa4]
add eax, dword [esp + 0xb8]
sub dword [esp + 0x14], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
jne 0x56ae05
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x1c