Function at 0x46db90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4ff080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], edx
movzx eax, dx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10c], edi
test edx, edx
je 0x46df28
mov dword [ebp - 0x118], 0xffff
cmp edx, 0xffff
jae 0x46dbd9
mov dword [ebp - 0x118], eax
jmp 0x46dc07
cmp byte [edx], 0x23
jne 0x46dc07
lea eax, [edx + 1]
push eax
call fcn.004b4891
add esp, 4
cmp eax, 0xffff
jae 0x46dc07
test eax, eax
je 0x46dc07
movzx ecx, ax
movzx eax, cx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], eax
test edi, edi
je 0x46df28
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x46df28
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x46df28
test eax, eax
jle 0x46dc44
cmp eax, 0x10000000
jae 0x46dc44
lea edx, [edi + 4]
add edx, eax
add eax, 0x18
add eax, edi
jmp 0x46dc49
mov edx, edi
lea eax, [edi + 0x14]
movzx ecx, word [eax]
sub ecx, 0x107
je 0x46df28
sub ecx, 4
je 0x46dc82
sub ecx, 0x100
jne 0x46df28
xor edx, edx
mov dword [ebp - 0x114], edx
cmp dword [eax + 0x6c], edx
jbe 0x46dcc9
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x46dcc9
mov edx, dword [eax + 0x74]
jmp 0x46dc99
xor edx, edx
mov dword [ebp - 0x114], edx
cmp dword [eax + 0x5c], edx
jbe 0x46dcc9
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x46dcc9
mov edx, dword [eax + 0x64]
test edx, edx
je 0x46dcc7
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x46dcb6
lea ebx, [edi + ecx]
xor ecx, ecx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x114], edx
jmp 0x46dccb
xor ecx, ecx
xor ebx, ebx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x114], edx
jmp 0x46dccb
xor edx, edx
xor ebx, ebx
test ebx, ebx
je 0x46df28
test edx, edx
je 0x46df28
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x46df28
cmp edx, 0x28
ja 0x46dd06
mov eax, dword [ebx + 0x18]
cmp esi, eax
cmova eax, esi
imul eax, eax, 0xff
add eax, dword [ebx + 0x24]
sub eax, ebx
add eax, edi
mov dword [ebp - 0x114], eax
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
add eax, edi
mov dword [ebp - 0x124], eax
add ecx, edi
lea eax, [edi + edx]
mov dword [ebp - 0x110], ecx
xor edx, edx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x108], edx
test esi, esi
je 0x46df28
nop dword [eax + eax]
movzx esi, word [eax + edx*2]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x46ddc1
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + edx*4]
add ecx, edi
add edi, eax
cmp edi, ebx
jbe 0x46dec0
mov eax, dword [ebp - 0x114]
add eax, ebx
cmp edi, eax
jae 0x46dec0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46dd75
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x100
jae 0x46ddaf
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004ac080
add esp, 0xc
xor eax, eax
test esi, esi
je 0x46ddaf
cmp byte [ebp + eax - 0x104], 0x2e
je 0x46dddc
inc eax
cmp eax, esi
jb 0x46dda0
mov edx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x110]
inc edx
mov dword [ebp - 0x108], edx
cmp edx, dword [ebx + 0x14]
jae 0x46df28
mov eax, dword [ebp - 0x120]
jmp 0x46dd40
cmp eax, 0x100
jae 0x46df3d
lea esi, [edi + 1]
mov byte [ebp + eax - 0x104], 0
add esi, eax
je 0x46ddaf
cmp byte [esi], 0x23
jne 0x46de60
lea eax, [esi + 1]
test eax, eax
je 0x46ddaf
mov edi, dword [ebp - 0x118]
mov ecx, 0xffff
cmp di, cx
jae 0x46ddaf
push eax
call fcn.004b4891
mov esi, eax
add esp, 4
cmp esi, 0xffff
ja 0x46ddaf
test esi, esi
je 0x46ddaf
movzx ecx, di
cmp esi, ecx
jne 0x46ddaf
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
movzx edx, si
mov ecx, eax
call fcn.0046db90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x11c]
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46de88
test dl, dl
je 0x46de84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46de88
add eax, 2
add ecx, 2
test dl, dl
jne 0x46de68
xor eax, eax
jmp 0x46de8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46ddaf
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
mov edx, esi
mov ecx, eax
call fcn.0046db90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffff
jbe 0x46deff
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46def0
test dl, dl
je 0x46deec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46def0
add eax, 2
add ecx, 2
test dl, dl
jne 0x46ded0
xor eax, eax
jmp 0x46def5
sbb eax, eax
or eax, 1
test eax, eax
je 0x46df13
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x118]
lea ecx, [esi + 1]
movzx eax, ax
cmp ecx, eax
jne 0x46ddb5
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9b96
mov esp, ebp
pop ebp
ret 4
call fcn.004a9dea
int3