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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp ecx, 1
je 0x420168
jb 0x41fff0
cmp ecx, 0x20
jb 0x41fffa
pop ebx
pop esi
pop edi
pop ebp
mov eax, 0xfe02
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 0x420032
lea edx, [edx*4]
sub edi, edx
test ebx, 1
je 0x420025
mov ebp, eax
shl ebx, 1
lea edx, [ebx + ebx*8]
lea edx, [edx + 0x420035]
jmp edx
sub edi, 0x40
mov ebx, dword [edi + 0x3c]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x3c], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x38]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x38], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x34]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x34], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x30]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x30], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x2c]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x2c], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x28]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x28], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x24]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x24], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x20]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x20], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x1c]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x1c], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x18]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x18], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0x14]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0x14], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 0x10]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 0x10], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 0xc]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 0xc], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi + 8]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi + 8], ebx
shl eax, cl
xchg cl, ch
mov ebx, dword [edi + 4]
mov ebp, ebx
shr ebx, cl
xchg cl, ch
or ebx, eax
mov dword [edi + 4], ebx
shl ebp, cl
xchg cl, ch
mov ebx, dword [edi]
mov eax, ebx
shr ebx, cl
xchg cl, ch
or ebx, ebp
mov dword [edi], ebx
shl eax, cl
xchg cl, ch
sub esi, 0x10
ja 0x420007
pop ebx
pop esi
pop edi
pop ebp
mov eax, 0
ret
lea edi, [edi + esi*4]
xor eax, eax
lahf
mov ecx, esi
mov ebx, 0x20
sub ebx, ecx
jbe 0x42018e
lea ecx, [ecx*4]
sub edi, ecx
lea ecx, [ebx + ebx*2]
lea ecx, [ecx + 0x420195]
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 0x42016e
pop ebx
pop esi
pop edi
pop ebp
mov eax, 0
ret