Function at 0x5e3470
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
push 0x8000
push ebx
call fcn.005ec51f
mov ebp, eax
push ebp
mov dword [esp + 0x28], ebp
call fcn.005e2110
push 0
mov esi, eax
push 0
push ebp
mov dword [esp + 0x2c], esi
call fcn.005ea1ab
mov eax, dword [0x418a60]
mov edi, dword [esp + 0x54]
add eax, 0xffff0000
push esi
cmp edi, eax
sbb eax, eax
neg eax
mov dword [esp + 0x40], eax
call fcn.005e7e75
mov ecx, dword [0x418a60]
mov esi, eax
mov eax, dword [0x418be0]
add esp, 0x1c
sub edi, ecx
test eax, eax
mov dword [esp + 0x20], edi
jne 0x5e34e4
add edi, 0xf
and edi, 0xfffffff0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x14]
push edi
push esi
push ebp
call fcn.005e84c5
mov ax, word [esi + 8]
add esp, 0xc
shl ax, 4
sub eax, 4
mov ecx, eax
and ecx, 0xffff
cmp ecx, edi
jb 0x5e350c
xor eax, eax
and eax, 0xffff
mov ax, word [eax + esi]
mov edx, eax
and edx, 0xffff
cmp edx, edi
jb 0x5e3523
xor eax, eax
mov edi, eax
and edi, 0xffff
add edi, esi
cmp dword [edi], 0x4550
jne 0x5e36ef
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov cx, word [edi + 0x14]
mov dword [edi + 0x34], edx
xor edx, edx
mov dx, word [edi + 6]
add cx, ax
add ecx, 0x18
mov dword [esp + 0x28], edx
test edx, edx
mov dword [esp + 0x3c], 0
jle 0x5e363a
mov eax, ecx
mov ebp, 0x416e8c
and eax, 0xffff
add eax, esi
mov bl, byte [eax]
mov dl, bl
cmp bl, byte [ebp]
jne 0x5e359e
test dl, dl
je 0x5e359a
mov bl, byte [eax + 1]
mov dl, bl
cmp bl, byte [ebp + 1]
jne 0x5e359e
add eax, 2
add ebp, 2
test dl, dl
jne 0x5e3579
xor eax, eax
jmp 0x5e35a3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5e35bd
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
inc eax
add ecx, 0x28
cmp eax, edx
mov dword [esp + 0x3c], eax
jl 0x5e356b
jmp 0x5e3636
and ecx, 0xffff
add ecx, esi
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
mov dword [esp + 0x30], eax
je 0x5e3636
add eax, ecx
cmp ecx, eax
mov dword [esp + 0x28], eax
jae 0x5e3636
mov edx, dword [esi + ecx + 4]
mov ebx, dword [ecx + esi]
mov ebp, ecx
test edx, edx
mov dword [esp + 0x3c], ebp
je 0x5e3636
add ecx, 8
add edx, ebp
cmp ecx, edx
jae 0x5e362c
jmp 0x5e35fd
mov ebp, dword [esp + 0x3c]
mov ax, word [ecx + esi]
and eax, 0xfff
test ax, ax
jne 0x5e360f
cmp ecx, ebp
jne 0x5e362c
mov ebp, dword [esp + 0x20]
and eax, 0xffff
sub ebp, dword [edi + 0x28]
add eax, ebx
add eax, esi
add ecx, 2
sub ebp, dword [esp + 0x2c]
add dword [eax], ebp
cmp ecx, edx
jb 0x5e35f9
mov eax, dword [esp + 0x28]
mov ecx, edx
cmp ecx, eax
jb 0x5e35dd
mov ebp, dword [esp + 0x1c]
mov eax, dword [edi + 0x28]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
add eax, ecx
push 0x180
sub ebx, eax
push 0x8302
push 0x416b9c
mov dword [esp + 0x20], ebx
call fcn.005ec51f
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x20]
add edx, esi
mov ebx, eax
push ecx
push edx
push ebx
call fcn.005e86bb
mov eax, dword [esp + 0x3c]
add esp, 0x18
test eax, eax
je 0x5e36c6
mov eax, dword [0x418be0]
test eax, eax
je 0x5e36c6
mov ecx, dword [esp + 0x14]
xor al, al
mov byte [esp + 0x13], al
mov edi, dword [edi + 0x28]
add edi, esi
test ecx, ecx
jle 0x5e36a7
mov dl, byte [edi]
add al, dl
inc edi
dec ecx
mov byte [esp + 0x13], al
jne 0x5e369b
neg al
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push ebx
call fcn.005e86bb
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
mov dword [esp + 0x14], eax
push ebx
call fcn.005ea245
push ebp
call fcn.005ea245
mov edi, dword [esp + 0x40]
push edi
call fcn.005e8490
push edi
push 0x416b9c
call fcn.005e8462
add esp, 0x14
jmp 0x5e377a
push ebp
call fcn.005ea245
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
je 0x5e377a
mov eax, dword [0x418be0]
test eax, eax
je 0x5e377a
push 0x180
push 0x8302
push 0x416b9c
call fcn.005ec51f
mov ebp, dword [esp + 0x20]
mov edi, eax
push ebp
push esi
push edi
call fcn.005e86bb
add esp, 0x18
xor ecx, ecx
xor al, al
test ebp, ebp
mov byte [esp + 0x13], al
jle 0x5e3748
mov dl, byte [ecx + esi]
add al, dl
inc ecx
cmp ecx, ebp
mov byte [esp + 0x13], al
jl 0x5e373a
lea ecx, [esp + 0x13]
push 1
neg al
push ecx
push edi
mov byte [esp + 0x1f], al
call fcn.005e86bb
inc ebp
push edi
mov dword [esp + 0x24], ebp
call fcn.005ea245
push ebx
call fcn.005e8490
push ebx
push 0x416b9c
call fcn.005e8462
add esp, 0x1c
push esi
call fcn.005e7d5e
push 0x10000
call fcn.005e7e75
mov edx, dword [0x418a60]
mov esi, eax
mov eax, dword [0x418a68]
push 0
mov dword [esp + 0x34], esi
lea ecx, [eax + edx - 0x1fffa]
mov edx, dword [0x418bac]
push ecx
push edx
call fcn.005e7ee9
mov eax, dword [0x418bac]
lea ecx, [esp + 0x2c]
push eax
push 2
push 1
push ecx
call fcn.005e7d8d
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x418a60]
mov dl, al
add esp, 0x24
and edx, 0xf
shl edx, 0xc
shr ax, 4
add edx, eax
xor eax, eax
add ecx, 0xfffe0000
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x24], eax
je 0x5e3980
mov edx, dword [esp + 0x38]
mov eax, dword [0x418bac]
push 0
push edx
push eax
call fcn.005e7ee9
mov ecx, dword [0x418bac]
push ecx
push 0x10000
push 1
push esi
call fcn.005e7d8d
add esp, 0x1c
xor edi, edi
xor ebp, ebp
add esi, 0x11
cmp word [esi - 0x11], 0x454d
lea ebx, [esi - 0x11]
jne 0x5e38b1
push 0x11
push 0x416c8c
push ebx
call fcn.005e8ad0
add esp, 0xc
test eax, eax
jne 0x5e38b1
mov ax, word [esi + 4]
mov ecx, dword [esp + 0x20]
xor edx, edx
cmp ax, 8
sete dl
mov dword [esp + 0x18], eax
mov eax, edx
test eax, eax
mov edi, 1
mov dword [esi], ecx
je 0x5e38ae
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x5e3880
mov eax, 0xf000
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov word [esi + 8], ax
mov ax, word [esi + 0xa]
mov dword [esp + 0x18], eax
and eax, 0xffff
cmp eax, ecx
jb 0x5e38ae
mov eax, dword [0x418be0]
test eax, eax
jne 0x5e38ae
mov dword [esp + 0x18], ecx
mov word [esi + 0xc], cx
add ebp, 0x1b
cmp word [ebx], 0x6f42
jne 0x5e3911
push 0xc
push 0x416e7c
push ebx
call fcn.005e8ad0
add esp, 0xc
test eax, eax
jne 0x5e3911
mov eax, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x5e38dd
mov eax, 0xf000
mov dword [esp + 0x18], eax
shr ax, 4
mov word [esi + 0x16], ax
mov dx, word [esp + 0x18]
shr dx, 4
mov word [esi + 0x1e], dx
mov ax, word [esp + 0x18]
shr ax, 4
cmp word [esi + 0x2e], ax
jae 0x5e3909
add word [esi + 0x2e], ax
mov edi, 1
add ebp, 0xc
cmp word [ebx], 0x4f42
jne 0x5e393d
push 0xc
push fcn.00416e64
push ebx
call fcn.005e8ad0
add esp, 0xc
test eax, eax
jne 0x5e393d
mov ax, word [esp + 0x1c]
mov edi, 1
mov word [esi + 5], ax
add ebp, 0x16
inc ebp
inc esi
cmp ebp, 0x10000
jl 0x5e382e
test edi, edi
je 0x5e397c
mov ecx, dword [esp + 0x38]
mov edx, dword [0x418bac]
push 0
push ecx
push edx
call fcn.005e7ee9
mov eax, dword [0x418bac]
mov ecx, dword [esp + 0x34]
push eax
push 0x10000
push 1
push ecx
call fcn.005e7c54
add esp, 0x1c
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
inc eax
add edx, 0x10000
cmp eax, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
jl 0x5e37f4
push esi
call fcn.005e7d5e
mov eax, dword [esp + 0x28]
add esp, 4
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x5e39ba
call fcn.005e39c0
add esp, 0x24
ret