Function at 0x46ebc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movzx edi, byte [ecx]
lea eax, [edi - 9]
cmp eax, 0x75
ja case.0x46ebe1.34
movzx eax, byte [eax + 0x46f1ac]
mov dl, 4
jmp dword [eax*4 + 0x46f144]
movzx esi, byte [ecx + 1]
mov edx, 1
mov eax, edx
test byte [esi + 0x4c2140], dl
je 0x46ec0e
jmp 0x46ec00
add eax, edx
movzx esi, byte [eax + ecx]
test byte [esi + 0x4c2140], dl
jne 0x46ec00
pop edi
pop esi
mov dword [ebx], 0x96
pop ebx
pop ebp
ret
cmp byte [ecx + 1], 0x2d
jne 0x46ec4a
movzx edx, byte [ecx + 2]
mov eax, 2
test edx, edx
je 0x46ec3f
lea esp, [esp]
cmp edx, 0xa
je 0x46ec3f
movzx edx, byte [eax + ecx + 1]
inc eax
test edx, edx
jne 0x46ec30
pop edi
pop esi
mov dword [ebx], 0x96
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x58
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x16
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x17
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 1
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x57
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x59
mov eax, 1
pop ebx
pop ebp
ret
cmp byte [ecx + 1], 0x2a
jne 0x46ece2
mov dl, byte [ecx + 2]
test dl, dl
je 0x46ece2
mov eax, 3
movzx edx, dl
nop
cmp edx, 0x2a
jne 0x46eccb
cmp byte [eax + ecx], 0x2f
je 0x46ecd6
movzx edx, byte [eax + ecx]
test edx, edx
je 0x46ecd7
inc eax
jmp 0x46ecc0
inc eax
pop edi
pop esi
mov dword [ebx], 0x96
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x5a
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x5b
mov eax, 1
pop ebx
pop ebp
ret
xor eax, eax
cmp byte [ecx + 1], 0x3d
pop edi
sete al
pop esi
mov dword [ebx], 0x4d
pop ebx
inc eax
pop ebp
ret
movzx eax, byte [ecx + 1]
cmp eax, 0x3d
jne 0x46ed30
pop edi
pop esi
mov dword [ebx], 0x4f
mov eax, 2
pop ebx
pop ebp
ret
cmp eax, 0x3e
jne 0x46ed45
pop edi
pop esi
mov dword [ebx], 0x4c
mov eax, 2
pop ebx
pop ebp
ret
cmp eax, 0x3c
jne 0x46ed5a
pop edi
pop esi
mov dword [ebx], 0x55
mov eax, 2
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x50
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [ecx + 1]
cmp eax, 0x3d
jne 0x46ed83
pop edi
pop esi
mov dword [ebx], 0x51
mov eax, 2
pop ebx
pop ebp
ret
cmp eax, 0x3e
jne 0x46ed98
pop edi
pop esi
mov dword [ebx], 0x56
mov eax, 2
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x4e
mov eax, 1
pop ebx
pop ebp
ret
cmp byte [ecx + 1], 0x3d
mov eax, 2
jne 0x46f079
pop edi
pop esi
mov dword [ebx], 0x4c
pop ebx
pop ebp
ret
cmp byte [ecx + 1], 0x7c
je 0x46edd8
pop edi
pop esi
mov dword [ebx], 0x54
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x5c
mov eax, 2
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x1a
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x53
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [ebx], 0x5e
mov eax, 1
pop ebx
pop ebp
ret
movzx esi, byte [ecx + 1]
mov eax, 1
test esi, esi
je 0x46ee3d
cmp esi, edi
jne 0x46ee33
movzx edx, byte [ecx + eax + 1]
cmp edx, edi
jne 0x46ee3d
inc eax
movzx esi, byte [eax + ecx + 1]
inc eax
test esi, esi
jne 0x46ee25
cmp esi, 0x27
jne 0x46ee4e
pop edi
pop esi
mov dword [ebx], 0x5f
inc eax
pop ebx
pop ebp
ret
test esi, esi
je 0x46f079
pop edi
pop esi
mov dword [ebx], 0x1b
inc eax
pop ebx
pop ebp
ret
movzx eax, byte [ecx + 1]
test byte [eax + 0x4c2140], dl
jne case.0x46ebe1.24
pop edi
pop esi
mov dword [ebx], 0x77
mov eax, 1
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebx], 0x82
test byte [edi + 0x4c2140], dl
je 0x46ee9e
mov edi, edi
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46ee90
cmp byte [eax + ecx], 0x2e
jne 0x46eec6
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
je 0x46eec0
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46eeb2
mov dword [ebx], 0x83
mov bl, byte [eax + ecx]
cmp bl, 0x65
je 0x46eed3
cmp bl, 0x45
jne 0x46ef29
mov bl, byte [eax + ecx + 1]
movzx esi, bl
test byte [esi + 0x4c2140], dl
jne 0x46eef9
cmp bl, 0x2b
je 0x46eeec
cmp bl, 0x2d
jne 0x46ef29
movzx esi, byte [eax + ecx + 2]
test byte [esi + 0x4c2140], dl
je 0x46ef29
movzx esi, byte [eax + ecx + 2]
add eax, 2
test byte [esi + 0x4c2140], dl
je 0x46ef1e
lea esp, [esp]
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46ef10
mov edx, dword [ebp + 8]
mov dword [edx], 0x83
jmp 0x46ef2c
mov edx, dword [ebp + 8]
movzx esi, byte [eax + ecx]
mov bl, 0x46
test byte [esi + 0x4c2140], bl
je 0x46f13e
mov edi, edi
movzx esi, byte [eax + ecx + 1]
inc eax
mov edi, 0x95
test byte [esi + 0x4c2140], bl
jne 0x46ef40
mov dword [edx], edi
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, edi
mov eax, 1
cmp edx, 0x5d
je 0x46ef74
movzx edx, byte [eax + ecx]
test edx, edx
je 0x46ef74
inc eax
cmp edx, 0x5d
jne 0x46ef66
sub edx, 0x5d
neg edx
sbb edx, edx
and edx, 0x7a
pop edi
add edx, 0x1b
pop esi
mov dword [ebx], edx
pop ebx
pop ebp
ret
movzx esi, byte [ecx + 1]
mov dl, 4
mov dword [ebx], 0x86
mov eax, 1
test byte [esi + 0x4c2140], dl
je 0x46f13e
jmp 0x46efb0
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46efb0
pop edi
pop esi
pop ebx
pop ebp
ret
movzx esi, byte [ecx + 1]
mov dl, 4
mov eax, 1
test byte [esi + 0x4c2140], dl
je case.0x46ebe1.13
jmp 0x46efe0
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46efe0
cmp eax, 1
jle case.0x46ebe1.13
pop edi
pop esi
mov dword [ebx], 0x85
pop ebx
pop ebp
ret
movzx edx, byte [ecx + 1]
xor esi, esi
mov dword [ebx], 0x86
lea eax, [esi + 1]
test edx, edx
je 0x46f079
mov bl, 0x46
movzx edi, dl
test byte [edi + 0x4c2140], bl
je 0x46f021
inc esi
jmp 0x46f032
cmp edx, 0x28
je 0x46f03e
cmp edx, 0x3a
jne 0x46f06e
cmp byte [ecx + eax + 1], dl
jne 0x46f06e
inc eax
movzx edx, byte [eax + ecx + 1]
inc eax
test edx, edx
jne 0x46f013
jmp 0x46f06e
test esi, esi
jle 0x46f070
movzx edx, byte [eax + ecx + 1]
inc eax
test edx, edx
je 0x46f05d
test byte [edx + 0x4c2140], 1
jne 0x46f05d
cmp edx, 0x29
jne 0x46f042
inc eax
jmp 0x46f06e
cmp edx, 0x29
jne 0x46f065
inc eax
jmp 0x46f06e
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x95
test esi, esi
jne 0x46f13e
mov ebx, dword [ebp + 8]
pop edi
pop esi
mov dword [ebx], 0x95
pop ebx
pop ebp
ret
cmp byte [ecx + 1], 0x27
jne case.0x46ebe1.34
movzx esi, byte [ecx + 2]
mov dl, 8
mov dword [ebx], 0x84
mov eax, 2
test byte [esi + 0x4c2140], dl
je 0x46f0b1
movzx esi, byte [eax + ecx + 1]
inc eax
test byte [esi + 0x4c2140], dl
jne 0x46f0a3
mov dl, byte [eax + ecx]
cmp dl, 0x27
jne 0x46f0ca
mov esi, eax
and esi, reloc.WS2_32.dll_accept
jns 0x46f0c8
dec esi
or esi, 0xfffffffe
inc esi
je 0x46f0e2
mov dword [ebx], 0x95
test dl, dl
je 0x46f0e2
cmp dl, 0x27
je 0x46f0e2
mov dl, byte [eax + ecx + 1]
inc eax
test dl, dl
jne 0x46f0d4
cmp byte [eax + ecx], 0
je 0x46f13e
pop edi
pop esi
inc eax
pop ebx
pop ebp
ret
mov bl, 0x46
test byte [edi + 0x4c2140], bl
jne 0x46f10b
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [edx], 0x95
mov eax, 1
pop ebx
pop ebp
ret
movzx eax, byte [ecx + 1]
mov edi, 1
test byte [eax + 0x4c2140], bl
je 0x46f12e
lea esp, [esp]
movzx edx, byte [edi + ecx + 1]
inc edi
test byte [edx + 0x4c2140], bl
jne 0x46f120
push ecx
call fcn.0046eae0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret