Function at 0x404e50
Capabilities:
Parse pe header

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
mov edx, dword [eax + 0xc]
movzx eax, byte [edx]
cmp al, 0x4c
je 0x405170
cmp al, 0x54
je 0x405180
cmp al, 0x73
je 0x404ec8
cmp al, 0x66
je 0x404f28
lea ecx, [eax - 0x30]
cmp cl, 9
jbe 0x404e97
cmp al, 0x6f
jne 0x404fc0
cmp byte [edx + 1], 0x6e
jne 0x404edc
add edx, 2
mov dword [ebx + 0xc], edx
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00404330
mov esi, eax
test eax, eax
je 0x405160
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
je 0x4050c0
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [edx + 1]
cmp al, 0x72
je 0x405070
cmp al, 0x70
je 0x405328
mov eax, ebx
call fcn.00404160
mov esi, eax
test eax, eax
je 0x405160
mov eax, dword [eax]
cmp eax, 0x33
je 0x405020
cmp eax, 0x34
je 0x4051d0
cmp eax, 0x35
jne 0x405160
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x5f
je 0x4052c0
mov eax, ebx
call fcn.00404e50
jmp 0x405058
cmp byte [edx + 1], 0x70
jne 0x404edc
lea eax, [edx + 2]
mov dword [ebx + 0xc], eax
movzx eax, byte [edx + 2]
cmp al, 0x54
je 0x405318
cmp al, 0x5f
je 0x4052b0
cmp al, 0x6e
je 0x405160
mov eax, ebx
call fcn.00402600
mov ecx, eax
add ecx, 1
js 0x405160
mov edx, dword [ebx + 0xc]
cmp byte [edx], 0x5f
jne 0x405160
add edx, 1
mov dword [ebx + 0xc], edx
cmp ecx, 0x7fffffff
je 0x405160
lea edx, [eax + 2]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jge 0x405160
mov ecx, dword [ebx + 0x10]
lea esi, [eax + eax*4]
add eax, 1
lea esi, [ecx + esi*4]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebx + 0x14], eax
mov dword [esi], 6
mov dword [esi + 0xc], edx
jmp 0x404eb8
cmp al, 0x69
je 0x404fcc
cmp al, 0x74
jne 0x405190
cmp byte [edx + 1], 0x6c
jne 0x404edc
add edx, 2
xor esi, esi
mov dword [ebx + 0xc], edx
cmp al, 0x74
je 0x4053d8
cmp byte [edx], 0
je 0x405160
cmp byte [edx + 1], 0
je 0x405160
mov edx, 0x45
mov eax, ebx
call fcn.004057e0
mov ecx, esi
mov edx, 0x32
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
mov edx, dword [esi + 0xc]
mov edi, dword [edx]
mov eax, dword [edx + 8]
sub eax, 2
add dword [ebx + 0x2c], eax
movzx eax, byte [edi]
cmp eax, 0x73
jne 0x4050e8
cmp byte [edi + 1], 0x74
jne 0x4050e8
cmp byte [edi + 2], 0
jne 0x4050e8
mov eax, ebx
call fcn.00403410
lea esi, [esi]
mov dword [esp], eax
mov ecx, esi
mov edx, 0x38
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
lea eax, [edx + 2]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x40509c
movzx eax, byte [edx + 2]
cmp al, 0x55
jg 0x405578
cmp al, 0x42
jg 0x4054f9
sub eax, 0x30
cmp al, 9
jbe 0x40550a
mov eax, ebx
call fcn.00403410
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.00404330
mov esi, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
jne 0x404eb8
lea esi, [esi]
add eax, 1
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.00404be0
mov ecx, esi
mov edx, 4
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
mov ebp, dword [edx + 0xc]
cmp ebp, 2
je 0x405210
jg 0x405358
test ebp, ebp
je 0x4051ed
cmp ebp, 1
jne 0x405160
movzx edx, byte [edi]
cmp dl, 0x6d
je 0x4052e0
cmp dl, 0x70
je 0x4052e0
xor ebp, ebp
cmp eax, 0x73
jne 0x405308
cmp byte [edi + 1], 0x50
jne 0x405308
cmp byte [edi + 2], 0
jne 0x405308
mov eax, ebx
call fcn.00404be0
test ebp, ebp
je 0x405058
mov dword [esp], eax
mov ecx, eax
mov edx, 0x3a
mov eax, ebx
call fcn.004024a0
jmp 0x405058
xor esi, esi
jmp 0x404eb8
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00404990
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00402cc0
cmp al, 0x75
jne 0x404edc
add edx, 1
mov eax, ebx
mov dword [ebx + 0xc], edx
call fcn.00403030
mov esi, eax
mov eax, ebx
call fcn.00404be0
mov ecx, esi
mov edx, 0x40
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x404f16
cmp eax, 3
je 0x405160
test eax, eax
jne 0x405160
mov dword [esp], 0
mov ecx, esi
mov edx, 0x37
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
cmp byte [edi + 1], 0x63
movzx edx, byte [edi]
je 0x405533
cmp dl, 0x66
je 0x40559f
cmp eax, 0x64
jne 0x405585
cmp byte [edi + 1], 0x69
jne 0x405585
cmp byte [edi + 2], 0
jne 0x405585
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00404330
mov ebp, eax
movzx eax, byte [edi]
cmp eax, 0x63
jne 0x405480
cmp byte [edi + 1], 0x6c
jne 0x405480
cmp byte [edi + 2], 0
jne 0x405480
mov edx, 0x45
mov eax, ebx
call fcn.004057e0
mov edi, eax
mov dword [esp], edi
mov ecx, ebp
mov edx, 0x3a
mov eax, ebx
call fcn.004024a0
mov ecx, esi
mov edx, 0x39
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
add edx, 3
mov dword [ebx + 0xc], edx
mov edx, 1
jmp 0x404f83
add eax, 1
mov edx, 0x45
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.004057e0
jmp 0x405058
cmp byte [edi + 1], dl
jne 0x40511c
mov edx, dword [ebx + 0xc]
cmp byte [edx], 0x5f
jne 0x40511e
add edx, 1
mov dword [ebx + 0xc], edx
movzx eax, byte [edi]
jmp 0x40511c
mov eax, ebx
call fcn.00404e50
jmp 0x405142
add edx, 3
mov dword [ebx + 0xc], edx
xor edx, edx
jmp 0x404f83
add edx, 2
mov eax, ebx
mov dword [ebx + 0xc], edx
call fcn.00404e50
mov dword [esp], 0
mov edx, 0x4d
mov ecx, eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
cmp ebp, 3
jne 0x405160
cmp eax, 0x71
jne 0x4053f0
cmp byte [edi + 1], 0x75
jne 0x4053f0
cmp byte [edi + 2], 0
jne 0x4053f0
mov eax, ebx
call fcn.00404e50
mov edi, eax
mov eax, ebx
call fcn.00404e50
mov ebp, eax
mov eax, ebx
call fcn.00404e50
test eax, eax
je 0x405160
mov dword [esp], eax
mov ecx, ebp
mov edx, 0x3d
mov eax, ebx
call fcn.004024a0
mov ecx, edi
mov edx, 0x3c
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov ecx, esi
mov edx, 0x3b
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov esi, eax
jmp 0x404eb8
mov eax, ebx
call fcn.00403410
mov edx, dword [ebx + 0xc]
mov esi, eax
jmp 0x404fe6
cmp eax, 0x64
jne 0x405405
cmp byte [edi + 1], 0x58
jne 0x405405
cmp byte [edi + 2], 0
je 0x40537a
movzx eax, byte [edi]
cmp al, 0x66
je 0x4055ad
cmp al, 0x6e
jne 0x405160
movzx eax, byte [edi + 1]
cmp al, 0x77
je 0x405428
cmp al, 0x61
jne 0x405160
mov edx, 0x5f
mov eax, ebx
call fcn.004057e0
mov edi, eax
mov eax, ebx
call fcn.00403410
mov ebp, eax
mov eax, dword [ebx + 0xc]
movzx edx, byte [eax]
cmp dl, 0x45
je 0x4055da
cmp dl, 0x70
je 0x4055b9
cmp dl, 0x69
jne 0x405160
cmp byte [eax + 1], 0x6c
jne 0x405160
mov eax, ebx
call fcn.00404e50
jmp 0x40539b
cmp eax, 0x64
jne 0x405555
cmp byte [edi + 1], 0x74
jne 0x405555
cmp byte [edi + 2], 0
jne 0x405555
mov eax, dword [ebx + 0xc]
movzx edx, byte [eax]
cmp dl, 0x67
je 0x405593
cmp dl, 0x73
jne 0x4054bb
cmp byte [eax + 1], 0x72
je 0x40556a
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00404330
mov edi, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
jne 0x40527e
add eax, 1
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.00404be0
mov ecx, edi
mov edx, 4
mov dword [esp], eax
mov eax, ebx
call fcn.004024a0
mov edi, eax
jmp 0x40527e
sub eax, 0x43
mov edx, 0x40201
bt edx, eax
jae 0x40509c
mov dword [ebx + 0x38], 0xffffffff
xor edx, edx
mov eax, ebx
call fcn.00404cf0
mov edx, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x45
jne 0x4050a5
add eax, 1
mov dword [ebx + 0xc], eax
jmp 0x4050a5
lea ecx, [edx - 0x72]
cmp cl, 1
jbe 0x405547
lea ecx, [edx - 0x63]
cmp cl, 1
ja 0x40521d
mov eax, ebx
call fcn.00403410
mov ebp, eax
jmp 0x405250
cmp eax, 0x70
jne 0x40556a
cmp byte [edi + 1], 0x74
jne 0x40556a
cmp byte [edi + 2], 0
je 0x40549d
mov eax, ebx
call fcn.00404e50
mov edi, eax
jmp 0x40527e
sub eax, 0x61
cmp al, 0x19
ja 0x40509c
jmp 0x40550a
mov eax, ebx
call fcn.00404e50
mov ebp, eax
jmp 0x405250
cmp byte [eax + 1], 0x73
jne 0x4054bb
jmp 0x40556a
mov eax, ebx
call fcn.00404160
mov ebp, eax
jmp 0x405250
mov eax, ebx
call fcn.00404160
jmp 0x405381
cmp byte [eax + 1], 0x69
jne 0x405160
add eax, 2
mov edx, 0x45
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.004057e0
jmp 0x40539b
add eax, 1
mov dword [ebx + 0xc], eax
xor eax, eax
jmp 0x40539b