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

Disassembly:
sub esp, 0x3c
push ebp
xor ebp, ebp
cmp dword [esp + 0x50], ebp
je 0x42e994
mov eax, dword [esp + 0x44]
push ebx
push esi
inc eax
push edi
mov dword [esp + 0x28], eax
lea esp, [esp]
mov eax, dword [esp + 0x64]
dec dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x58]
sar eax, 0x10
mov dword [esp + 0x38], edi
mov ebx, ecx
cmp eax, ebp
jl 0x42e977
cmp eax, dword [esp + 0x74]
jge 0x42e977
mov edx, dword [esp + 0x88]
add edx, eax
mov esi, edx
imul esi, dword [esp + 0x78]
add esi, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], esi
cmp ecx, ebp
je 0x42e977
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jmp 0x42e7c4
mov edx, dword [esp + 0x3c]
mov ecx, edi
dec ebx
sar ecx, 0x10
mov dword [esp + 0x48], ebx
cmp ecx, ebp
jl 0x42e95a
cmp ecx, dword [esp + 0x70]
jge 0x42e95a
mov eax, dword [esp + 0x8c]
add ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebp
mov edi, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], ecx
test eax, eax
je 0x42e958
lea esi, [esi + ecx*4 + 1]
mov dword [esp + 0x14], esi
dec edi
mov dword [esp + 0x40], edi
cmp edx, dword [esp + 0x74]
jge 0x42e8ba
test edx, edx
js 0x42e8a2
mov edx, dword [esp + 0x14]
mov esi, ecx
mov edi, eax
mov edi, edi
mov ecx, dword [ebx]
dec edi
add ebx, 4
test esi, esi
js 0x42e88c
cmp esi, dword [esp + 0x70]
jge 0x42e88c
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
mov eax, dword [esp + 0x8c]
add ebp, ecx
mov dword [esp + 0x2c], ebp
inc esi
add edx, 4
test edi, edi
jne 0x42e840
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
jmp 0x42e8a5
lea ebx, [ebx + eax*4]
mov esi, dword [esp + 0x78]
add dword [esp + 0x14], esi
inc edx
mov dword [esp + 0x30], edx
test edi, edi
jne 0x42e823
test ebp, ebp
jle 0x42e954
mov eax, dword [esp + 0x18]
cdq
idiv ebp
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
lea ebx, [ecx - 1]
movzx ecx, byte [ecx + 2]
imul eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add eax, ecx
push eax
mov eax, dword [esp + 0x20]
cdq
idiv ebp
imul eax, edi
cdq
and edx, 0xff
lea ecx, [edx + eax]
movzx edx, byte [ebx]
mov eax, dword [esp + 0x24]
sar ecx, 8
add ecx, edx
cdq
idiv ebp
imul eax, edi
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, dword [esp + 0x14]
movzx edx, byte [eax]
mov eax, dword [esp + 0x28]
sar esi, 8
add esi, edx
cdq
idiv ebp
imul eax, edi
cdq
and edx, 0xff
lea edi, [edx + eax]
mov eax, dword [esp + 0x14]
movzx edx, byte [eax + 1]
sar edi, 8
add edi, edx
mov edx, ebx
call fcn.004384b0
add esp, 4
mov esi, dword [esp + 0x34]
xor ebp, ebp
mov edi, dword [esp + 0x38]
add edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x48]
add dword [esp + 0x10], 4
mov dword [esp + 0x38], edi
cmp ebx, ebp
jne 0x42e7c0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x28], eax
add dword [esp + 0x64], ecx
cmp dword [esp + 0x5c], ebp
jne 0x42e760
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x3c
ret