Function at 0x51ecf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
sub edx, 9
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x75
ja case.0x51ed1c.2
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x51f558]
jmp dword [ecx*4 + 0x51f4f0]
mov dword [ebp - 4], 1
jmp 0x51ed35
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x768cb8]
and edx, 1
je 0x51ed4c
jmp 0x51ed2c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x95
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
cmp edx, 0x2d
jne 0x51eda6
mov dword [ebp - 4], 2
jmp 0x51ed7b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x51ed95
cmp dword [ebp - 8], 0xa
je 0x51ed95
jmp 0x51ed72
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x95
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x57
mov eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x16
mov eax, 1
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x17
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 1
mov eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x56
mov eax, 1
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x58
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
cmp edx, 0x2a
jne 0x51ee2f
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 2]
test ecx, ecx
jne 0x51ee42
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x59
mov eax, 1
jmp 0x51f4ec
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 2]
mov dword [ebp - 8], ecx
jmp 0x51ee5e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0x2a
jne 0x51ee72
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x2f
je 0x51ee86
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x51ee86
jmp 0x51ee55
cmp dword [ebp - 8], 0
je 0x51ee95
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x95
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5a
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4c
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
xor ecx, ecx
cmp eax, 0x3d
sete cl
add ecx, 1
mov eax, ecx
jmp 0x51f4ec
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3d
jne 0x51ef00
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4e
mov eax, 2
jmp 0x51f4ec
cmp dword [ebp - 8], 0x3e
jne 0x51ef1b
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x4b
mov eax, 2
jmp 0x51f4ec
cmp dword [ebp - 8], 0x3c
jne 0x51ef36
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x54
mov eax, 2
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4f
mov eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3d
jne 0x51ef6e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x50
mov eax, 2
jmp 0x51f4ec
cmp dword [ebp - 8], 0x3e
jne 0x51ef89
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x55
mov eax, 2
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4d
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 1]
cmp edx, 0x3d
je 0x51efbd
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x94
mov eax, 2
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x4b
mov eax, 2
jmp 0x51f4ec
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
cmp eax, 0x7c
je 0x51eff1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x53
mov eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x5b
mov eax, 2
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x19
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x52
mov eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x5d
mov eax, 1
jmp 0x51f4ec
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 1
jmp 0x51f058
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x51f090
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jne 0x51f08e
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
cmp ecx, dword [ebp - 0xc]
jne 0x51f08c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x51f08e
jmp 0x51f090
jmp 0x51f04f
cmp dword [ebp - 8], 0x27
jne 0x51f0ac
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x5e
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x51f4ec
cmp dword [ebp - 8], 0
je 0x51f0c8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x1a
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x51f4ec
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x94
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 1]
movzx edx, byte [ecx + 0x768cb8]
and edx, 4
jne case.0x51ed1c.39
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x76
mov eax, 1
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x81
mov dword [ebp - 4], 0
jmp 0x51f11a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x768cb8]
and edx, 4
je 0x51f131
jmp 0x51f111
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0x2e
jne 0x51f171
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x768cb8]
and edx, 4
je 0x51f168
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x51f148
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x82
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x65
je 0x51f18d
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x45
jne 0x51f209
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
movzx edx, byte [ecx + 0x768cb8]
and edx, 4
jne 0x51f1d7
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
cmp ecx, 0x2b
je 0x51f1c1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
cmp eax, 0x2d
jne 0x51f209
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 2]
movzx eax, byte [edx + 0x768cb8]
and eax, 4
je 0x51f209
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x768cb8]
and ecx, 4
je 0x51f200
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x51f1e0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x82
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x768cb8]
and eax, 0x46
je 0x51f232
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x94
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x51f209
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov dword [ebp - 8], ecx
jmp 0x51f255
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0x5d
je 0x51f26f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x51f26f
jmp 0x51f24c
mov edx, dword [ebp - 8]
sub edx, 0x5d
neg edx
sbb edx, edx
and edx, 0x7a
add edx, 0x1a
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x85
mov dword [ebp - 4], 1
jmp 0x51f2a7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x768cb8]
and edx, 4
je 0x51f2be
jmp 0x51f29e
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov dword [ebp - 4], 1
jmp 0x51f2d8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x768cb8]
and eax, 4
je 0x51f2ef
jmp 0x51f2cf
cmp dword [ebp - 4], 1
jle case.0x51ed1c.27
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x84
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x85
mov dword [ebp - 4], 1
jmp 0x51f328
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x51f3db
movzx eax, byte [ebp - 8]
movzx ecx, byte [eax + 0x768cb8]
and ecx, 0x46
je 0x51f359
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x51f3d6
cmp dword [ebp - 8], 0x28
jne 0x51f3b4
cmp dword [ebp - 0x10], 0
jle 0x51f3b4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x51f396
movzx eax, byte [ebp - 8]
movzx ecx, byte [eax + 0x768cb8]
and ecx, 1
jne 0x51f396
cmp dword [ebp - 8], 0x29
jne 0x51f365
cmp dword [ebp - 8], 0x29
jne 0x51f3a7
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x51f3b0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x94
jmp 0x51f3db
cmp dword [ebp - 8], 0x3a
jne 0x51f3d4
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x51f3d4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x51f3d6
jmp 0x51f3db
jmp 0x51f31f
cmp dword [ebp - 0x10], 0
jne 0x51f3ea
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x94
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 1]
cmp eax, 0x27
jne case.0x51ed1c.2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x83
mov dword [ebp - 4], 2
jmp 0x51f41d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x51f450
cmp dword [ebp - 8], 0x27
je 0x51f450
movzx edx, byte [ebp - 8]
movzx eax, byte [edx + 0x768cb8]
and eax, 8
jne 0x51f44e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x94
jmp 0x51f414
mov edx, dword [ebp - 4]
and edx, 0x80000001
jns 0x51f460
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
jne 0x51f46a
cmp dword [ebp - 8], 0
jne 0x51f473
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x94
cmp dword [ebp - 8], 0
je 0x51f482
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x768cb8]
and ecx, 0x46
jne 0x51f49b
jmp 0x51f4de
mov dword [ebp - 4], 1
jmp 0x51f4ad
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
movzx edx, byte [ecx + 0x768cb8]
and edx, 0x46
je 0x51f4c4
jmp 0x51f4a4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051f5d0
add esp, 8
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 4]
jmp 0x51f4ec
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x94
mov eax, 1
mov esp, ebp
pop ebp
ret