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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp ecx, 1
je 0x41e967
jb 0x41e7df
cmp ecx, 0x20
jb 0x41e7f1
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, 0xfe02
mov esp, ebp
pop ebp
ret
xor eax, eax
lea edi, [edi + esi*4]
add ecx, 0xffff2000
sub ch, cl
mov edx, esi
mov ebx, 0x10
sub ebx, edx
jbe 0x41e829
lea edx, [edx*4]
sub edi, edx
test ebx, 1
je 0x41e81c
mov esp, eax
shl ebx, 1
lea edx, [ebx + ebx*8]
lea edx, [edx + 0x41e82c]
jmp edx
sub edi, 0x40
mov ebx, dword [edi + 0x3c]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x3c], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x38]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x38], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x34]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x34], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x30]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x30], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x2c]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x2c], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x28]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x28], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x24]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x24], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x20]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x20], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x1c]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x1c], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x18]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x18], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x14]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x14], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 0x10]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 0x10], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0xc]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0xc], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi + 8]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi + 8], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 4]
mov esp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 4], ebx
shl esp, cl
xchg cl, ch
mov ebx, dword [edi]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, esp
mov dword [edi], ebx
shl eax, cl
xchg cl, ch
sub esi, 0x10
ja 0x41e7fe
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, 0
mov esp, ebp
pop ebp
ret
lea edi, [edi + esi*4]
xor eax, eax
lahf
mov ecx, esi
mov ebx, 0x20
sub ebx, ecx
jbe 0x41e98d
lea ecx, [ecx*4]
sub edi, ecx
lea ecx, [ebx + ebx*2]
lea ecx, [ecx + 0x41e994]
sahf
jmp ecx
sub edi, 0x80
sahf
rcr dword [edi + 0x7c], 1
rcr dword [edi + 0x78], 1
rcr dword [edi + 0x74], 1
rcr dword [edi + 0x70], 1
rcr dword [edi + 0x6c], 1
rcr dword [edi + 0x68], 1
rcr dword [edi + 0x64], 1
rcr dword [edi + 0x60], 1
rcr dword [edi + 0x5c], 1
rcr dword [edi + 0x58], 1
rcr dword [edi + 0x54], 1
rcr dword [edi + 0x50], 1
rcr dword [edi + 0x4c], 1
rcr dword [edi + 0x48], 1
rcr dword [edi + 0x44], 1
rcr dword [edi + 0x40], 1
rcr dword [edi + 0x3c], 1
rcr dword [edi + 0x38], 1
rcr dword [edi + 0x34], 1
rcr dword [edi + 0x30], 1
rcr dword [edi + 0x2c], 1
rcr dword [edi + 0x28], 1
rcr dword [edi + 0x24], 1
rcr dword [edi + 0x20], 1
rcr dword [edi + 0x1c], 1
rcr dword [edi + 0x18], 1
rcr dword [edi + 0x14], 1
rcr dword [edi + 0x10], 1
rcr dword [edi + 0xc], 1
rcr dword [edi + 8], 1
rcr dword [edi + 4], 1
rcr dword [edi], 1
lahf
sub esi, 0x20
ja 0x41e96d
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, 0
mov esp, ebp
pop ebp
ret