Function at 0x504840
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
movzx ebx, byte [esi]
lea eax, [ebx - 9]
cmp eax, 0x75
ja case.0x50485d.11
movzx eax, byte [eax + 0x504e00]
jmp dword [eax*4 + 0x504d98]
movzx eax, byte [esi + 1]
mov edx, 1
test byte [eax + 0x5708a8], dl
je 0x50488f
nop word [eax + eax]
movzx ecx, byte [edx + esi + 1]
inc edx
test byte [ecx + 0x5708a8], 1
jne 0x504880
mov dword [edi], 0x95
mov eax, edx
pop edi
pop esi
pop ebx
ret
cmp byte [esi + 1], 0x2d
jne 0x5048cb
movzx eax, byte [esi + 2]
mov ecx, 2
test eax, eax
je 0x5048bf
nop
cmp eax, 0xa
je 0x5048bf
movzx eax, byte [ecx + esi + 1]
inc ecx
test eax, eax
jne 0x5048b0
mov dword [edi], 0x95
pop edi
pop esi
mov eax, ecx
pop ebx
ret
mov dword [edi], 0x57
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x16
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x17
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x56
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x58
mov eax, 1
pop edi
pop esi
pop ebx
ret
cmp byte [esi + 1], 0x2a
jne 0x50496d
mov al, byte [esi + 2]
test al, al
je 0x50496d
mov ecx, 3
movzx edx, al
nop word [eax + eax]
cmp edx, 0x2a
jne 0x504960
cmp byte [ecx + esi], 0x2f
lea eax, [ecx + esi]
jne 0x504963
mov dword [edi], 0x95
lea eax, [ecx + 1]
pop edi
test edx, edx
pop esi
cmove eax, ecx
pop ebx
ret
lea eax, [esi + ecx]
movzx edx, byte [eax]
test edx, edx
je 0x50494e
inc ecx
jmp 0x504940
mov dword [edi], 0x59
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x5a
mov eax, 1
pop edi
pop esi
pop ebx
ret
xor eax, eax
mov dword [edi], 0x4c
cmp byte [esi + 1], 0x3d
pop edi
sete al
pop esi
inc eax
pop ebx
ret
mov al, byte [esi + 1]
cmp al, 0x3d
jne 0x5049b5
mov dword [edi], 0x4e
mov eax, 2
pop edi
pop esi
pop ebx
ret
cmp al, 0x3e
je 0x504a28
cmp al, 0x3c
jne 0x5049cc
mov dword [edi], 0x54
mov eax, 2
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x4f
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov al, byte [esi + 1]
cmp al, 0x3d
jne 0x5049f1
mov dword [edi], 0x50
mov eax, 2
pop edi
pop esi
pop ebx
ret
cmp al, 0x3e
jne 0x504a04
mov dword [edi], 0x55
mov eax, 2
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x4d
mov eax, 1
pop edi
pop esi
pop ebx
ret
cmp byte [esi + 1], 0x3d
je 0x504a28
mov dword [edi], 0x94
mov eax, 2
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x4b
mov eax, 2
pop edi
pop esi
pop ebx
ret
cmp byte [esi + 1], 0x7c
je 0x504a4c
mov dword [edi], 0x53
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x5b
mov eax, 2
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x19
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x52
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x5d
mov eax, 1
pop edi
pop esi
pop ebx
ret
movzx edx, byte [esi + 1]
mov ecx, 1
test edx, edx
je 0x504aad
cmp edx, ebx
jne 0x504aa3
movzx eax, byte [esi + ecx + 1]
cmp eax, ebx
jne 0x504aad
inc ecx
movzx edx, byte [ecx + esi + 1]
inc ecx
test edx, edx
jne 0x504a95
cmp edx, 0x27
jne 0x504abf
mov dword [edi], 0x5e
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
ret
test edx, edx
je 0x504ad0
mov dword [edi], 0x1a
lea eax, [ecx + 1]
pop edi
pop esi
pop ebx
ret
mov dword [edi], 0x94
mov eax, ecx
pop edi
pop esi
pop ebx
ret
movzx eax, byte [esi + 1]
test byte [eax + 0x5708a8], 4
jne case.0x50485d.48
mov dword [edi], 0x75
mov eax, 1
pop edi
pop esi
pop ebx
ret
xor ecx, ecx
mov dword [edi], 0x81
test byte [ebx + 0x5708a8], 4
je 0x504b1f
nop dword [eax]
movzx eax, byte [ecx + esi + 1]
inc ecx
test byte [eax + 0x5708a8], 4
jne 0x504b10
cmp byte [ecx + esi], 0x2e
jne 0x504b55
movzx eax, byte [ecx + esi + 1]
inc ecx
test byte [eax + 0x5708a8], 4
je 0x504b4f
nop dword [eax]
nop dword [eax + eax]
movzx eax, byte [ecx + esi + 1]
inc ecx
test byte [eax + 0x5708a8], 4
jne 0x504b40
mov dword [edi], 0x82
mov al, byte [ecx + esi]
cmp al, 0x65
je 0x504b60
cmp al, 0x45
jne 0x504bb5
mov dl, byte [ecx + esi + 1]
movzx eax, dl
test byte [eax + 0x5708a8], 4
jne 0x504b88
cmp dl, 0x2b
je 0x504b7a
cmp dl, 0x2d
jne 0x504bb5
movzx eax, byte [ecx + esi + 2]
test byte [eax + 0x5708a8], 4
je 0x504bb5
movzx eax, byte [ecx + esi + 2]
add ecx, 2
test byte [eax + 0x5708a8], 4
je 0x504baf
nop dword [eax]
movzx eax, byte [ecx + esi + 1]
inc ecx
test byte [eax + 0x5708a8], 4
jne 0x504ba0
mov dword [edi], 0x82
movzx eax, byte [ecx + esi]
test al, al
js 0x504bd3
cmp eax, 0x1f
jbe 0x5048c5
cmp byte [eax + 0x56fdb8], 0
je 0x5048c5
mov dword [edi], 0x94
inc ecx
jmp 0x504bb5
mov eax, 1
movzx edx, byte [eax + esi]
test edx, edx
je 0x504bef
inc eax
cmp edx, 0x5d
jne 0x504be1
mov esi, 0x1a
cmp edx, 0x5d
mov ecx, 0x94
cmove ecx, esi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
ret
movzx eax, byte [esi + 1]
mov edx, 1
mov dword [edi], 0x85
test byte [eax + 0x5708a8], 4
je 0x504c2f
nop dword [eax]
movzx ecx, byte [edx + esi + 1]
inc edx
test byte [ecx + 0x5708a8], 4
jne 0x504c20
pop edi
pop esi
mov eax, edx
pop ebx
ret
movzx eax, byte [esi + 1]
mov edx, 1
test byte [eax + 0x5708a8], 4
je case.0x50485d.36
nop word [eax + eax]
movzx ecx, byte [edx + esi + 1]
inc edx
test byte [ecx + 0x5708a8], 4
jne 0x504c50
cmp edx, 1
jle case.0x50485d.36
mov dword [edi], 0x84
mov eax, edx
pop edi
pop esi
pop ebx
ret
movzx ecx, byte [esi + 1]
xor edx, edx
mov dword [edi], 0x85
lea eax, [edx + 1]
test ecx, ecx
je 0x504cbb
test cl, cl
js 0x504ca8
cmp ecx, 0x1f
jbe 0x504c95
cmp byte [ecx + 0x56fdb8], 0
jne 0x504ca8
cmp ecx, 0x28
je 0x504cc5
cmp ecx, 0x3a
jne 0x504cb3
cmp byte [esi + eax + 1], cl
jne 0x504cb3
inc eax
jmp 0x504ca9
inc edx
movzx ecx, byte [eax + esi + 1]
inc eax
test ecx, ecx
jne 0x504c83
test edx, edx
jne 0x504d94
mov dword [edi], 0x94
pop edi
pop esi
pop ebx
ret
test edx, edx
jle 0x504cb5
nop dword [eax]
mov dl, byte [eax + esi + 1]
inc eax
movzx ecx, dl
test dl, dl
je 0x504cea
test byte [ecx + 0x5708a8], 1
jne 0x504cea
cmp ecx, 0x29
jne 0x504cd0
cmp dl, 0x29
jne 0x504cbb
pop edi
pop esi
inc eax
pop ebx
ret
cmp byte [esi + 1], 0x27
jne case.0x50485d.11
movzx ecx, byte [esi + 2]
mov edx, 2
mov dword [edi], 0x83
test ecx, ecx
je 0x504d2e
nop dword [eax]
cmp ecx, 0x27
je 0x504d2e
test byte [ecx + 0x5708a8], 8
jne 0x504d24
mov dword [edi], 0x94
movzx ecx, byte [edx + esi + 1]
inc edx
test ecx, ecx
jne 0x504d10
test dl, 1
jne 0x504d37
test ecx, ecx
jne 0x504d3d
mov dword [edi], 0x94
pop edi
test ecx, ecx
lea eax, [edx + 1]
pop esi
cmove eax, edx
pop ebx
ret
test bl, bl
js 0x504d6a
cmp ebx, 0x1f
jbe 0x504d5b
cmp byte [ebx + 0x56fdb8], 0
jne 0x504d6a
mov dword [edi], 0x94
mov eax, 1
pop edi
pop esi
pop ebx
ret
mov ebx, 1
nop
movzx eax, byte [ebx + esi]
test al, al
js 0x504d86
cmp eax, 0x1f
jbe 0x504d89
cmp byte [eax + 0x56fdb8], 0
je 0x504d89
inc ebx
jmp 0x504d70
mov edx, ebx
call fcn.005047a0
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret