Function at 0x5bfa60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50e400
push 0x475dc0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1704
call fcn.006110f0
mov eax, dword [0x516a90]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov ebx, edx
mov byte [ebp - 0x16fd], 0
push 0x410
xor esi, esi
push esi
lea eax, [ebp - 0x694]
push eax
call fcn.00611070
add esp, 0xc
mov dword [ebp - 4], esi
push 0x40e
lea ecx, [ebp - 0x694]
push ecx
push ebx
call dword [0x4993a8]
test eax, eax
jbe 0x5bfd93
cmp word [ebx], 0x5a4d
je 0x5bfaf5
mov dword [ebp - 4], 0xfffffffe
xor al, al
jmp 0x5bfda0
mov edx, dword [ebx + 0x3c]
lea ebx, [ebx + edx*2]
cmp dword [ebx], 0x4550
jne 0x5bfae7
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x694]
push eax
call dword [0x499338]
mov dword [ebp - 0x1704], eax
mov word [ebp - 0x284], si
cmp eax, 0xffffffff
je 0x5bfb83
push esi
push eax
call dword [0x499334]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x171c]
push ecx
push esi
push esi
mov edx, dword [ebp - 0x1704]
push edx
call dword [0x49930c]
test eax, eax
je 0x5bfb73
mov eax, dword [ebp - 0x1718]
push eax
mov ecx, dword [ebp - 0x171c]
push ecx
lea esi, [ebp - 0x284]
call fcn.005bf9e0
add esp, 8
mov edx, dword [ebp - 0x1704]
push edx
call dword [fcn.00499390]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
push eax
push 0x505f04
push edi
call fcn.005bf840
lea ecx, [ebp - 0x694]
push ecx
push 0x503eec
push edi
call fcn.005bf840
mov edx, dword [ebx + 0x50]
push edx
mov eax, dword [ebx + 0x34]
push eax
push 0x505f20
push edi
call fcn.005bf840
mov ecx, dword [ebx + 8]
push ecx
mov edx, dword [ebx + 0x58]
push edx
push 0x505f78
push edi
call fcn.005bf840
lea eax, [ebp - 0x284]
push eax
push esi
push 0x505fd0
push edi
call fcn.005bf840
add esp, 0x48
push 0x506018
push edi
call fcn.005bf840
add esp, 8
lea ecx, [ebp - 0x694]
push ecx
lea esi, [ebp - 0x16fc]
call fcn.005c0c30
push 0x18f
push 0
lea edx, [ebp - 0x1bc]
push edx
call fcn.00611070
add esp, 0xc
push 0x18e
lea eax, [ebp - 0x12c4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
mov esi, dword [0x4992e8]
call esi
lea edx, [ebp - 0x1bc]
push edx
push 0x506048
push edi
call fcn.005bf840
push 0x18f
push 0
lea eax, [ebp - 0x1bc]
push eax
call fcn.00611070
add esp, 0x18
push 0x18e
lea ecx, [ebp - 0xeb4]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call esi
lea eax, [ebp - 0x1bc]
push eax
push 0x506070
push edi
call fcn.005bf840
push 0x18f
push 0
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.00611070
add esp, 0x18
push 0x18e
lea edx, [ebp - 0xaa4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call esi
lea ecx, [ebp - 0x1bc]
push ecx
push 0x506098
push edi
call fcn.005bf840
add esp, 0xc
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1714], eax
mov dword [ebp - 0x170c], ecx
cmp eax, 4
jge 0x5bfce9
mov dx, word [ebp + eax*2 - 0x16f4]
mov word [ecx], dx
add ecx, 2
add eax, 1
jmp 0x5bfcc5
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push 0x5060c0
push edi
call fcn.005bf840
add esp, 0x18
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1710], eax
mov dword [ebp - 0x1708], ecx
cmp eax, 4
jge 0x5bfd34
mov dx, word [ebp + eax*2 - 0x16ec]
mov word [ecx], dx
add ecx, 2
add eax, 1
jmp 0x5bfd10
movzx eax, word [ebp - 0x22]
push eax
movzx ecx, word [ebp - 0x24]
push ecx
movzx edx, word [ebp - 0x26]
push edx
movzx eax, word [ebp - 0x28]
push eax
push 0x5060fc
push edi
call fcn.005bf840
add esp, 0x18
mov eax, dword [ebp - 0x16fc]
test eax, eax
je 0x5bfd69
push eax
call fcn.005fc2b8
add esp, 4
mov dword [ebp - 0x16fc], 0
push 0x504e60
push edi
call fcn.005bf840
add esp, 8
mov byte [ebp - 0x16fd], 1
jmp 0x5bfd93
mov dword [ebp - 4], 0xfffffffe
mov al, byte [ebp - 0x16fd]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0060e648
mov esp, ebp
pop ebp
ret