Function at 0x4044f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b1a60
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov byte [esi + 0xaeb4], 0
mov byte [esi + 0xaebc], 0
cmp eax, 0xffffffff
je 0x40454d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x40471c
cmp eax, 3
je 0x40471c
mov eax, dword [esi]
lea ebx, [esi + 0x63bc]
push 7
push ebx
mov ecx, esi
call dword [eax + 8]
cmp eax, 7
jne 0x40471c
mov dword [esi + 0xaeb8], 0
cmp byte [ebx], 0x52
jne 0x4045fd
mov al, byte [ebx + 1]
cmp al, 0x45
jne 0x404593
cmp byte [ebx + 2], 0x7e
jne 0x404593
cmp byte [ebx + 3], 0x5e
jne 0x404593
mov eax, 1
jmp 0x4045d1
cmp al, 0x61
jne 0x4045fd
cmp byte [ebx + 2], 0x72
jne 0x4045fd
cmp byte [ebx + 3], 0x21
jne 0x4045fd
cmp byte [ebx + 4], 0x1a
jne 0x4045fd
cmp byte [ebx + 5], 7
jne 0x4045fd
mov al, byte [ebx + 6]
test al, al
jne 0x4045bd
mov eax, 2
jmp 0x4045d1
cmp al, 1
jne 0x4045c8
mov eax, 3
jmp 0x4045d1
cmp al, 2
jne 0x4045fd
mov eax, 4
mov dword [esi + 0xaea8], eax
cmp eax, 1
jne 0x404743
mov edi, dword [esi]
mov ecx, esi
push 0
mov eax, dword [edi + 0x10]
call eax
sub eax, 7
mov ecx, esi
sbb edx, 0
push edx
push eax
call dword [edi + 0xc]
jmp 0x404743
push 0x100000
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0x100000
call fcn.0049395e
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x404637
call fcn.0040d130
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x100000
mov dword [esp + 0x40], 0
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [esi]
mov ecx, esi
push 0xffff0
push ebx
mov dword [esp + 0x20], eax
call dword [edx + 8]
mov ecx, eax
xor edi, edi
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x40470a
cmp byte [ebx + edi], 0x52
lea ecx, [ebx + edi]
jne 0x4046ce
sub eax, edi
cmp eax, 1
jb 0x4046ca
push eax
call fcn.00404470
test eax, eax
je 0x4046ca
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xaea8], eax
cmp eax, 1
jne 0x4046d5
test edi, edi
jle 0x4046d5
cmp ecx, 0x1c
jge 0x4046d5
cmp dword [esp + 0x14], 0x1f
jle 0x4046d5
mov eax, ebx
sub eax, ecx
cmp byte [eax + 0x1c], 0x52
jne 0x4046ca
cmp byte [eax + 0x1d], 0x53
jne 0x4046ca
cmp byte [eax + 0x1e], 0x46
jne 0x4046ca
cmp byte [eax + 0x1f], 0x58
je 0x4046d5
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x404675
jmp 0x40470a
mov edx, dword [esi]
lea eax, [edi + ecx]
push 0
push 0
push eax
mov ecx, esi
mov dword [esi + 0xaeb8], eax
call dword [edx + 0xc]
mov eax, dword [esi + 0xaea8]
cmp eax, 2
je 0x4046fa
cmp eax, 3
jne 0x40470a
mov eax, dword [esi]
lea ecx, [esi + 0x63bc]
push 7
push ecx
mov ecx, esi
call dword [eax + 8]
cmp dword [esi + 0xaeb8], 0
push ebx
jne 0x404733
call fcn.00493921
add esp, 4
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x44], 0xffffffff
call fcn.00493921
add esp, 4
mov eax, dword [esi + 0xaea8]
cmp eax, 4
je 0x40471c
cmp eax, 3
jne 0x404774
mov eax, dword [esi]
lea edi, [esi + 0x63c3]
push 1
push edi
mov ecx, esi
call dword [eax + 8]
cmp byte [edi], 0
jne 0x40471c
mov dword [esi + 0x63c4], 8
jmp 0x40477e
mov dword [esi + 0x63c4], 7
mov eax, dword [esi + 0x5704]
cmp dword [eax + 0x93a8], 0
jne 0x404794
mov byte [esi + 0x5728], 1
mov ecx, esi
call fcn.00404c90
test eax, eax
je 0x4047d9
nop
mov eax, dword [esi + 0x5724]
cmp eax, 1
je 0x4047d9
cmp byte [esi + 0x5728], 0
je 0x4047b9
cmp eax, 4
je 0x4047d9
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [esi + 0xaea4]
push dword [esi + 0xaea0]
call dword [eax + 0xc]
mov ecx, esi
call fcn.00404c90
test eax, eax
jne 0x4047a0
cmp byte [esi + 0xaebd], 0
mov bl, byte [ebp + 8]
je 0x4047ed
test bl, bl
je 0x40471c
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [esi + 0xaea4]
push dword [esi + 0xaea0]
call dword [eax + 0xc]
cmp byte [esi + 0xaebc], 0
je 0x404813
test bl, bl
je 0x40471c
cmp byte [esi + 0x5728], 0
mov al, byte [esi + 0x63e4]
mov byte [esi + 0xaeae], al
je 0x404835
cmp byte [esi + 0xaeb4], 0
jne 0x404947
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], esi
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov ebx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 1
mov ecx, esi
mov eax, dword [esi + 0xae98]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xae9c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xaea0]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xaea4]
mov dword [esp + 0x20], eax
call fcn.00404c90
test eax, eax
je 0x40490c
lea ecx, [ecx]
mov eax, dword [esi + 0x5724]
cmp eax, 3
jne 0x4048c4
cmp byte [esi + 0xaead], 0
je 0x4048ba
cmp byte [esi + 0x9808], 0
jne 0x4048ba
mov eax, 1
mov byte [esi + 0xaeb1], al
jmp 0x4048c9
xor eax, eax
mov byte [esi + 0xaeb1], al
jmp 0x4048c9
cmp eax, 2
je 0x4048eb
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [esi + 0xaea4]
push dword [esi + 0xaea0]
call dword [eax + 0xc]
mov ecx, esi
call fcn.00404c90
test eax, eax
jne 0x404890
jmp 0x40490c
cmp byte [esi + 0xaead], 0
je 0x404904
cmp byte [esi + 0x74c8], 0
jne 0x404904
mov eax, 1
jmp 0x404906
xor eax, eax
mov byte [esi + 0xaeb1], al
mov eax, dword [esp + 0x18]
mov ecx, esi
mov dword [esi + 0xae98], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0xae9c], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xaea0], eax
mov eax, dword [esp + 0x20]
push 0
mov dword [esi + 0xaea4], eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 0xc]
cmp byte [esi + 0xaead], 0
je 0x404959
cmp byte [esi + 0xaeb1], 0
je 0x404973
lea ecx, [esi + 0x1e]
sub esi, ecx
mov edi, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + esi + 0xaef0], ax
test ax, ax
jne 0x404960
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4