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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x27c
mov esi, eax
mov ebx, edx
mov dword [esp + 0x30], ecx
cmp ecx, 6
jle 0x419a20
cmp ecx, 0xe
jle 0x419d9f
cmp ecx, 0x1f
jne 0x419db4
mov dword [esp + 0x38], 6
jmp 0x419a30
mov dword [esp + 0x38], 3
mov dword [esp + 0x30], 3
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
lea ecx, [esp + 0x58]
mov edx, ebx
lea eax, [esp + 0x68]
call fcn.00416af0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x30]
cmp eax, edi
jle 0x419d40
mov edx, dword [esi]
mov dword [esp + 0x34], edx
mov esi, dword [esi + 4]
mov dword [esp + 0x10], esi
mov edx, dword [ebx + 4]
imul edx, esi
mov eax, edx
mov edx, dword [ebx]
lea ebp, [eax + edx*4]
mov ebx, dword [esp + 0x38]
lea ecx, [ebx - 1]
mov eax, 1
mov edx, eax
shl edx, cl
lea ecx, [ebx + 0xf]
shl eax, cl
mov ecx, edx
or ecx, eax
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x60]
test edx, edx
jle 0x419d40
lea eax, [edi + 1]
mov ecx, eax
mov ebx, esi
imul ecx, esi
mov dword [esp + 0x28], ecx
mov ecx, edi
neg ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x20]
mov esi, eax
sub esi, edi
mov dword [esp + 0x50], esi
dec esi
mov dword [esp + 0x1c], esi
dec eax
imul eax, ebx
add eax, ebp
mov esi, dword [esp + 0x34]
add eax, esi
mov dword [esp + 0x24], eax
lea edx, [ebp + edx*4]
mov dword [esp + 0x48], edx
mov eax, ecx
imul eax, ebx
lea ecx, [eax + esi]
mov dword [esp + 0x44], ecx
lea edi, [esp + edi*4 + 0x78]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x1c]
imul eax, ebx
add eax, esi
mov dword [esp + 0x54], eax
mov esi, ebp
lea esi, [esi]
lea esi, [esi]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x78]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x44]
lea edx, [esi + eax]
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], ebp
test eax, eax
js 0x419d50
mov ecx, dword [edx]
mov ebx, ecx
and ebx, 0xff00ff
add ebp, ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff00ff
add dword [esp + 4], ebx
mov edi, dword [esp + 0x2c]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [esp + 0x10]
add edx, edi
cmp dword [esp + 0x30], eax
jge 0x419b40
cmp dword [esp + 0x50], 1
je 0x419d90
mov eax, dword [esp + 0x34]
lea edi, [eax + esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
xor edx, edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
lea esi, [esi]
nop
mov eax, dword [edi]
mov ecx, dword [esp + 8]
mov dword [esp + ecx*4 + 0x78], eax
mov ebx, dword [esp + 0x28]
mov ebx, dword [edi + ebx]
mov esi, eax
and esi, 0xff00ff
add esi, ebp
mov cl, byte [esp + 0x14]
shr esi, cl
shr eax, 8
and eax, 0xff00ff
mov ecx, dword [esp + 4]
add eax, ecx
mov cl, byte [esp + 0x14]
shr eax, cl
shl eax, 8
and eax, 0xff00ff00
and esi, 0xff00ff
or eax, esi
mov dword [edi], eax
mov eax, ebx
and eax, 0xff00ff
mov esi, dword [esp + edx*4 + 0x78]
and esi, 0xff00ff
sub eax, esi
add ebp, eax
shr ebx, 8
and ebx, 0xff00ff
mov eax, dword [esp + edx*4 + 0x78]
shr eax, 8
and eax, 0xff00ff
sub ebx, eax
mov ecx, dword [esp + 4]
add ecx, ebx
mov dword [esp + 4], ecx
inc edx
and edx, 0x7f
mov ecx, dword [esp + 8]
lea eax, [ecx + 1]
and eax, 0x7f
mov dword [esp + 8], eax
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add edi, ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x419bb0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x20], edi
jle 0x419d2c
mov eax, dword [esp + 0x54]
lea edi, [esi + eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 8]
nop
mov eax, dword [edi]
mov dword [esp + ebp*4 + 0x78], eax
mov ebx, dword [esp + 0x24]
mov ebx, dword [ebx]
mov esi, eax
and esi, 0xff00ff
mov ecx, dword [esp + 0x18]
add esi, ecx
mov cl, byte [esp + 0x14]
shr esi, cl
shr eax, 8
and eax, 0xff00ff
mov ecx, dword [esp + 4]
add eax, ecx
mov cl, byte [esp + 0x14]
shr eax, cl
shl eax, 8
and eax, 0xff00ff00
and esi, 0xff00ff
or eax, esi
mov dword [edi], eax
mov eax, ebx
and eax, 0xff00ff
mov esi, dword [esp + edx*4 + 0x78]
and esi, 0xff00ff
sub eax, esi
add dword [esp + 0x18], eax
shr ebx, 8
and ebx, 0xff00ff
mov eax, dword [esp + edx*4 + 0x78]
shr eax, 8
and eax, 0xff00ff
sub ebx, eax
add dword [esp + 4], ebx
inc edx
and edx, 0x7f
inc ebp
and ebp, 0x7f
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add edi, ecx
cmp dword [esp + 0x20], eax
jne 0x419c90
mov esi, dword [esp + 0x3c]
add esi, 4
add dword [esp + 0x24], 4
mov eax, dword [esp + 0x48]
cmp esi, eax
jne 0x419b20
add esp, 0x27c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x34]
mov ecx, dword [edi + esi]
mov ebx, ecx
and ebx, 0xff00ff
add ebp, ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff00ff
add dword [esp + 4], ebx
mov edi, dword [esp + 0x2c]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [esp + 0x10]
add edx, edi
jmp 0x419b40
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
xor edx, edx
jmp 0x419c5d
mov dword [esp + 0x38], 4
mov dword [esp + 0x30], 7
jmp 0x419a30
mov dword [esp + 0x38], 5
mov dword [esp + 0x30], 0xf
jmp 0x419a30