Function at 0x408b80
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 0x408eb0
cmp al, 0x54
je 0x408ec0
cmp al, 0x73
je 0x408bf8
cmp al, 0x66
je 0x408c58
lea ecx, [eax - 0x30]
cmp cl, 9
jbe 0x408bc7
cmp al, 0x6f
jne 0x408cf0
cmp byte [edx + 1], 0x6e
jne 0x408c0c
add edx, 2
mov dword [ebx + 0xc], edx
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00408530
mov esi, eax
test eax, eax
je 0x408ea0
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
je 0x408e00
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [edx + 1]
cmp al, 0x72
je 0x408db0
cmp al, 0x70
je 0x409068
mov eax, ebx
call fcn.00408360
mov esi, eax
test eax, eax
je 0x408ea0
mov eax, dword [eax]
cmp eax, 0x33
je 0x408d50
cmp eax, 0x34
je 0x408f10
cmp eax, 0x35
jne 0x408ea0
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x5f
je 0x409000
mov eax, ebx
call fcn.00408b80
jmp 0x408d90
cmp byte [edx + 1], 0x70
jne 0x408c0c
lea eax, [edx + 2]
mov dword [ebx + 0xc], eax
movzx eax, byte [edx + 2]
cmp al, 0x54
je 0x409058
cmp al, 0x5f
je 0x408ff0
cmp al, 0x6e
je 0x408ea0
mov eax, ebx
call fcn.00406a00
mov ecx, eax
add ecx, 1
js 0x408ea0
mov edx, dword [ebx + 0xc]
cmp byte [edx], 0x5f
jne 0x408ea0
add edx, 1
mov dword [ebx + 0xc], edx
cmp ecx, 0x7fffffff
je 0x408ea0
lea edx, [eax + 2]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jge 0x408ea0
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 0x408be8
cmp al, 0x69
je 0x408cfc
cmp al, 0x74
jne 0x408ed0
cmp byte [edx + 1], 0x6c
jne 0x408c0c
add edx, 2
xor esi, esi
mov dword [ebx + 0xc], edx
cmp al, 0x74
je 0x409118
cmp byte [edx], 0
je 0x408ea0
cmp byte [edx + 1], 0
je 0x408ea0
mov edx, 0x45
mov eax, ebx
call fcn.00409330
mov ecx, esi
mov edx, 0x32
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
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 0x408e28
cmp byte [edi + 1], 0x74
jne 0x408e28
cmp byte [edi + 2], 0
jne 0x408e28
mov eax, ebx
call fcn.00407680
lea esi, cs:[esi]
lea esi, [esi]
mov dword [esp], eax
mov ecx, esi
mov edx, 0x38
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
lea eax, [edx + 2]
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x408ddc
movzx eax, byte [edx + 2]
cmp al, 0x55
jg 0x4092b8
cmp al, 0x42
jg 0x409239
sub eax, 0x30
cmp al, 9
jbe 0x40924a
mov eax, ebx
call fcn.00407680
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.00408530
mov esi, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
jne 0x408be8
lea esi, [esi]
add eax, 1
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.004095d0
mov ecx, esi
mov edx, 4
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
mov ebp, dword [edx + 0xc]
cmp ebp, 2
je 0x408f50
jg 0x409098
test ebp, ebp
je 0x408f2d
cmp ebp, 1
jne 0x408ea0
movzx edx, byte [edi]
cmp dl, 0x6d
je 0x409020
cmp dl, 0x70
je 0x409020
xor ebp, ebp
cmp eax, 0x73
jne 0x409048
cmp byte [edi + 1], 0x50
jne 0x409048
cmp byte [edi + 2], 0
jne 0x409048
mov eax, ebx
call fcn.004095d0
test ebp, ebp
je 0x408d90
mov dword [esp], eax
mov ecx, eax
mov edx, 0x3a
mov eax, ebx
call fcn.00406880
jmp 0x408d90
xor esi, esi
jmp 0x408be8
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040a500
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00407130
cmp al, 0x75
jne 0x408c0c
add edx, 1
mov eax, ebx
mov dword [ebx + 0xc], edx
call fcn.00407290
mov esi, eax
mov eax, ebx
call fcn.004095d0
mov ecx, esi
mov edx, 0x40
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x408c46
cmp eax, 3
je 0x408ea0
test eax, eax
jne 0x408ea0
mov dword [esp], 0
mov ecx, esi
mov edx, 0x37
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
cmp byte [edi + 1], 0x63
movzx edx, byte [edi]
je 0x409273
cmp dl, 0x66
je 0x4092df
cmp eax, 0x64
jne 0x4092c5
cmp byte [edi + 1], 0x69
jne 0x4092c5
cmp byte [edi + 2], 0
jne 0x4092c5
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00408530
mov ebp, eax
movzx eax, byte [edi]
cmp eax, 0x63
jne 0x4091c0
cmp byte [edi + 1], 0x6c
jne 0x4091c0
cmp byte [edi + 2], 0
jne 0x4091c0
mov edx, 0x45
mov eax, ebx
call fcn.00409330
mov edi, eax
mov dword [esp], edi
mov ecx, ebp
mov edx, 0x3a
mov eax, ebx
call fcn.00406880
mov ecx, esi
mov edx, 0x39
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
add edx, 3
mov dword [ebx + 0xc], edx
mov edx, 1
jmp 0x408cb3
add eax, 1
mov edx, 0x45
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.00409330
jmp 0x408d90
cmp byte [edi + 1], dl
jne 0x408e5c
mov edx, dword [ebx + 0xc]
cmp byte [edx], 0x5f
jne 0x408e5e
add edx, 1
mov dword [ebx + 0xc], edx
movzx eax, byte [edi]
jmp 0x408e5c
mov eax, ebx
call fcn.00408b80
jmp 0x408e82
add edx, 3
mov dword [ebx + 0xc], edx
xor edx, edx
jmp 0x408cb3
add edx, 2
mov eax, ebx
mov dword [ebx + 0xc], edx
call fcn.00408b80
mov dword [esp], 0
mov edx, 0x4d
mov ecx, eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
cmp ebp, 3
jne 0x408ea0
cmp eax, 0x71
jne 0x409130
cmp byte [edi + 1], 0x75
jne 0x409130
cmp byte [edi + 2], 0
jne 0x409130
mov eax, ebx
call fcn.00408b80
mov edi, eax
mov eax, ebx
call fcn.00408b80
mov ebp, eax
mov eax, ebx
call fcn.00408b80
test eax, eax
je 0x408ea0
mov dword [esp], eax
mov ecx, ebp
mov edx, 0x3d
mov eax, ebx
call fcn.00406880
mov ecx, edi
mov edx, 0x3c
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov ecx, esi
mov edx, 0x3b
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov esi, eax
jmp 0x408be8
mov eax, ebx
call fcn.00407680
mov edx, dword [ebx + 0xc]
mov esi, eax
jmp 0x408d16
cmp eax, 0x64
jne 0x409145
cmp byte [edi + 1], 0x58
jne 0x409145
cmp byte [edi + 2], 0
je 0x4090ba
movzx eax, byte [edi]
cmp al, 0x66
je 0x4092ed
cmp al, 0x6e
jne 0x408ea0
movzx eax, byte [edi + 1]
cmp al, 0x77
je 0x409168
cmp al, 0x61
jne 0x408ea0
mov edx, 0x5f
mov eax, ebx
call fcn.00409330
mov edi, eax
mov eax, ebx
call fcn.00407680
mov ebp, eax
mov eax, dword [ebx + 0xc]
movzx edx, byte [eax]
cmp dl, 0x45
je 0x40931a
cmp dl, 0x70
je 0x4092f9
cmp dl, 0x69
jne 0x408ea0
cmp byte [eax + 1], 0x6c
jne 0x408ea0
mov eax, ebx
call fcn.00408b80
jmp 0x4090db
cmp eax, 0x64
jne 0x409295
cmp byte [edi + 1], 0x74
jne 0x409295
cmp byte [edi + 2], 0
jne 0x409295
mov eax, dword [ebx + 0xc]
movzx edx, byte [eax]
cmp dl, 0x67
je 0x4092d3
cmp dl, 0x73
jne 0x4091fb
cmp byte [eax + 1], 0x72
je 0x4092aa
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00408530
mov edi, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x49
jne 0x408fbe
add eax, 1
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.004095d0
mov ecx, edi
mov edx, 4
mov dword [esp], eax
mov eax, ebx
call fcn.00406880
mov edi, eax
jmp 0x408fbe
sub eax, 0x43
mov edx, 0x40201
bt edx, eax
jae 0x408ddc
mov dword [ebx + 0x38], 0xffffffff
xor edx, edx
mov eax, ebx
call fcn.004096d0
mov edx, eax
mov eax, dword [ebx + 0xc]
cmp byte [eax], 0x45
jne 0x408de5
add eax, 1
mov dword [ebx + 0xc], eax
jmp 0x408de5
lea ecx, [edx - 0x72]
cmp cl, 1
jbe 0x409287
lea ecx, [edx - 0x63]
cmp cl, 1
ja 0x408f5d
mov eax, ebx
call fcn.00407680
mov ebp, eax
jmp 0x408f90
cmp eax, 0x70
jne 0x4092aa
cmp byte [edi + 1], 0x74
jne 0x4092aa
cmp byte [edi + 2], 0
je 0x4091dd
mov eax, ebx
call fcn.00408b80
mov edi, eax
jmp 0x408fbe
sub eax, 0x61
cmp al, 0x19
ja 0x408ddc
jmp 0x40924a
mov eax, ebx
call fcn.00408b80
mov ebp, eax
jmp 0x408f90
cmp byte [eax + 1], 0x73
jne 0x4091fb
jmp 0x4092aa
mov eax, ebx
call fcn.00408360
mov ebp, eax
jmp 0x408f90
mov eax, ebx
call fcn.00408360
jmp 0x4090c1
cmp byte [eax + 1], 0x69
jne 0x408ea0
add eax, 2
mov edx, 0x45
mov dword [ebx + 0xc], eax
mov eax, ebx
call fcn.00409330
jmp 0x4090db
add eax, 1
mov dword [ebx + 0xc], eax
xor eax, eax
jmp 0x4090db