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

Disassembly:
sub esp, 0x3c
push ebp
xor ebp, ebp
cmp dword [esp + 0x50], ebp
je 0x42fac8
push ebx
push esi
mov esi, dword [esp + 0x4c]
add esi, 2
push edi
mov dword [esp + 0x40], esi
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 + 0x3c], ebx
mov dword [esp + 0x28], ecx
cmp eax, ebp
jl 0x42faab
cmp eax, dword [esp + 0x74]
jge 0x42faab
mov edx, dword [esp + 0x88]
add edx, eax
mov edi, edx
imul edi, dword [esp + 0x78]
add edi, dword [esp + 0x54]
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], edi
cmp ecx, ebp
je 0x42faab
mov dword [esp + 0x38], esi
jmp 0x42f904
mov edx, dword [esp + 0x44]
dec dword [esp + 0x28]
mov ecx, ebx
sar ecx, 0x10
cmp ecx, ebp
jl 0x42fa8a
cmp ecx, dword [esp + 0x70]
jge 0x42fa8a
mov eax, dword [esp + 0x8c]
add ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], ecx
test eax, eax
je 0x42fa88
lea edi, [edi + ecx*4 + 1]
mov dword [esp + 0x10], edi
jmp 0x42f970
dec dword [esp + 0x14]
cmp edx, dword [esp + 0x74]
jge 0x42fa0d
test edx, edx
js 0x42f9f2
mov edx, dword [esp + 0x10]
mov esi, ecx
mov edi, eax
lea ebx, [ebx]
mov ecx, dword [ebx]
dec edi
add ebx, 4
test esi, esi
js 0x42f9d5
cmp esi, dword [esp + 0x70]
jge 0x42f9d5
movzx eax, byte [edx + 1]
imul eax, ecx
add dword [esp + 0x20], eax
movzx eax, byte [edx]
imul eax, ecx
add dword [esp + 0x1c], eax
movzx eax, byte [edx - 1]
mov ebp, dword [esp + 0x2c]
imul eax, ecx
add dword [esp + 0x18], eax
movzx eax, byte [edx + 2]
imul eax, ecx
add dword [esp + 0x24], eax
add ebp, ecx
mov dword [esp + 0x2c], ebp
inc esi
add edx, 4
test edi, edi
jne 0x42f990
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
jmp 0x42f9f5
lea ebx, [ebx + eax*4]
mov edi, dword [esp + 0x78]
add dword [esp + 0x10], edi
inc edx
cmp dword [esp + 0x14], 0
mov dword [esp + 0x30], edx
jne 0x42f970
test ebp, ebp
jle 0x42fa84
mov eax, dword [esp + 0x18]
cdq
idiv ebp
mov ebx, dword [esp + 0x80]
movzx edx, byte [esi - 2]
mov ecx, 0x100
sub ecx, ebx
shl ecx, 8
imul eax, ebx
add eax, ecx
imul eax, edx
sar eax, 0x10
mov byte [esi - 2], al
mov eax, dword [esp + 0x1c]
cdq
idiv ebp
movzx edx, byte [esi - 1]
imul eax, ebx
add eax, ecx
imul eax, edx
sar eax, 0x10
mov byte [esi - 1], al
mov eax, dword [esp + 0x20]
cdq
idiv ebp
movzx edx, byte [esi]
imul eax, ebx
add eax, ecx
imul eax, edx
sar eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x24]
cdq
idiv ebp
imul eax, ebx
add eax, ecx
movzx ecx, byte [esi + 1]
imul eax, ecx
sar eax, 0x10
mov byte [esi + 1], al
mov edi, dword [esp + 0x34]
xor ebp, ebp
mov ebx, dword [esp + 0x3c]
add ebx, dword [esp + 0x68]
add esi, 4
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebp
jne 0x42f900
mov esi, dword [esp + 0x40]
add esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x6c]
add dword [esp + 0x64], edx
mov dword [esp + 0x40], esi
cmp dword [esp + 0x5c], ebp
jne 0x42f8a0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x3c
ret