Function at 0x5825f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x582904
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.00573764
mov eax, dword [ebp - 0x3c]
call fcn.005766ec
test al, al
je 0x5828e9
xor edx, edx
push ebp
push 0x5828df
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
add eax, eax
xor edx, edx
call fcn.0057a6a0
mov dword [ebp - 4], eax
push 0
lea edx, [ebp - 4]
xor ecx, ecx
mov eax, ebx
call fcn.0057ac28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x58268a
cmp dword [ebx], 0x4550
je 0x5826a2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00572514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5828e9
cmp byte [ebp + 8], 0
je 0x58275a
mov byte [ebp - 0x29], 0x10
mov esi, dword [ebx + 0x80]
mov edx, esi
mov eax, ebx
call fcn.00581d18
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00581e2c
mov edx, esi
mov eax, ebx
call fcn.00581d18
mov esi, eax
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00581d18
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00581d18
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00581e2c
push ebx
mov eax, 0x582918
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.005823e0
mov esi, eax
test esi, esi
jne 0x58272e
lea eax, [ebp - 0x14]
push eax
push 0x582930
mov ecx, 0x582940
mov edx, 0x582958
mov eax, dword [ebp - 4]
call fcn.00582164
mov esi, eax
test esi, esi
jbe 0x582737
add esi, dword [ebx + 0x34]
jmp 0x582744
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5828e9
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00573764
mov eax, dword [ebp - 0x40]
call fcn.00573820
mov dword [ebp - 0x24], eax
mov al, byte [ebp + 8]
sub al, 1
jb 0x582770
je 0x5827d4
dec al
je 0x582817
jmp 0x582868
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 0xc]
call fcn.00573764
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 0x10]
call fcn.00573764
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call fcn.00573764
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00582164
test eax, eax
jbe 0x5827c7
push 1
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0057ad48
test al, al
je 0x5827c7
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5828e9
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
call fcn.00573764
mov eax, dword [ebp - 0x50]
call fcn.00573820
mov ecx, eax
xor eax, eax
mov al, byte [ebp - 0x29]
add ecx, eax
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00581fd0
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 0x28], edx
mov edx, eax
mov eax, ebx
call fcn.00581d80
mov edi, eax
jmp 0x582868
mov dword [ebp - 0x20], 5
movzx edi, byte [ebp - 0x29]
add edi, dword [ebp - 0x20]
add edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00581f14
cmp byte [ebp - 0x30], 0
je 0x58285b
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 4]
add edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00581d80
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x28], eax
jmp 0x582868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5828e9
xor edx, edx
mov dl, byte [ebp - 0x29]
add edx, edi
add edx, dword [ebx + 0x34]
lea eax, [ebp - 0x28]
call fcn.00581df8
lea eax, [ebp - 0x28]
mov edx, esi
call fcn.00581e10
mov edx, dword [ebp - 0x1c]
sub edx, edi
xor eax, eax
mov al, byte [ebp - 0x29]
sub edx, eax
lea eax, [ebp - 0x28]
call fcn.00581de8
mov ecx, dword [ebp - 0x24]
inc ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
call fcn.005750d4
mov dword [ebx + 8], 0x2e502e4d
mov dword [ebx + 0x28], edi
push 1
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0057ad48
test al, al
je 0x5828cb
mov byte [ebp - 0xd], 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0057a6c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5828e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58290b
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00573590
ret