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

Disassembly:
sub esp, 0x3c
push edi
xor edi, edi
cmp dword [esp + 0x50], edi
je 0x42e07e
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
add ebp, 2
push esi
mov dword [esp + 0x34], ebp
mov edi, edi
mov eax, dword [esp + 0x64]
dec dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
sar eax, 0x10
mov dword [esp + 0x30], ebx
mov edx, ecx
cmp eax, edi
jl 0x42e061
cmp eax, dword [esp + 0x74]
jge 0x42e061
add eax, dword [esp + 0x88]
mov esi, eax
imul esi, dword [esp + 0x78]
add esi, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], esi
cmp ecx, edi
je 0x42e061
mov dword [esp + 0x2c], ebp
mov eax, ebx
dec edx
sar eax, 0x10
mov dword [esp + 0x48], edx
cmp eax, edi
jl 0x42e03e
cmp eax, dword [esp + 0x70]
jge 0x42e03e
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x88]
add edx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov ecx, ebx
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x42e03c
lea edx, [esi + edx*4 + 1]
mov dword [esp + 0x14], edx
dec ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x74]
jge 0x42df8a
test ecx, ecx
js 0x42df6f
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 4
dec ebx
mov dword [esp + 0x28], eax
test esi, esi
js 0x42df5a
cmp esi, dword [esp + 0x70]
jge 0x42df56
movzx eax, byte [edx + 1]
imul eax, ecx
add dword [esp + 0x24], eax
movzx eax, byte [edx]
imul eax, ecx
add dword [esp + 0x20], eax
movzx eax, byte [edx - 1]
mov ebp, dword [esp + 0x2c]
imul eax, ecx
add dword [esp + 0x1c], eax
movzx eax, byte [edx + 2]
imul eax, ecx
add dword [esp + 0x18], eax
add edi, ecx
mov eax, dword [esp + 0x28]
inc esi
add edx, 4
test ebx, ebx
jne 0x42df11
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x8c]
jmp 0x42df72
lea eax, [eax + ebx*4]
mov ecx, dword [esp + 0x78]
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x44]
inc dword [esp + 0x10]
test ecx, ecx
jne 0x42def2
test edi, edi
jle 0x42e03c
mov eax, dword [esp + 0x18]
cdq
idiv edi
mov ecx, 0x100
sub ecx, dword [esp + 0x80]
mov ebx, eax
mov eax, dword [esp + 0x1c]
cdq
idiv edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
cdq
idiv edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cdq
idiv edi
mov dword [esp + 0x24], eax
movzx eax, byte [ebp - 2]
sub eax, dword [esp + 0x28]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, byte [esp + 0x28]
mov byte [ebp - 2], al
movzx eax, byte [ebp - 1]
sub eax, dword [esp + 0x20]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, byte [esp + 0x20]
mov byte [ebp - 1], al
movzx eax, byte [ebp]
sub eax, dword [esp + 0x24]
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, byte [esp + 0x24]
mov byte [ebp], al
movzx eax, byte [ebp + 1]
sub eax, ebx
imul eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add al, bl
mov byte [ebp + 1], al
xor edi, edi
mov ebx, dword [esp + 0x30]
add ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x48]
add ebp, 4
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
cmp edx, edi
jne 0x42de91
mov ebp, dword [esp + 0x34]
add ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
add dword [esp + 0x64], edx
mov dword [esp + 0x34], ebp
cmp dword [esp + 0x5c], edi
jne 0x42de40
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x3c
ret