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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push esi
mov esi, eax
mov eax, dword [0x420310]
push edi
mov edi, ecx
mov ecx, dword [0x420314]
mov edx, eax
or edx, ecx
jne 0x405606
xor eax, eax
jmp 0x40598b
push ebx
xor ebx, ebx
push ebx
push ecx
push eax
push dword [0x41fe64]
call fcn.0040b10d
add esp, 0x10
push dword [0x41fe64]
call fcn.0040a686
pop ecx
cmp eax, 0x50
jne 0x40565e
push dword [0x41fe64]
call fcn.0040a686
pop ecx
cmp eax, 0x4b
jne 0x40565e
push dword [0x41fe64]
call fcn.0040a686
pop ecx
cmp eax, 1
jne 0x40565e
push dword [0x41fe64]
call fcn.0040a686
pop ecx
cmp eax, 2
je 0x405663
cmp eax, 0xffffffff
jne 0x40561a
push dword [0x41fe64]
push 0x2a
push 1
push esi
call fcn.0040a221
add esp, 0x10
cmp eax, 0x2a
je 0x405688
mov dword [0x420310], ebx
xor eax, eax
jmp 0x405984
mov al, byte [esi]
mov byte [0x41fe70], al
mov al, byte [esi + 2]
mov byte [0x41fe72], al
mov al, byte [esi + 3]
mov byte [0x41fe73], al
movzx eax, byte [esi + 5]
shl ax, 8
movzx ecx, byte [esi + 4]
or ax, cx
mov word [0x41fe74], ax
movzx eax, byte [esi + 7]
shl ax, 8
movzx ecx, byte [esi + 6]
or ax, cx
mov word [0x41fe76], ax
movzx eax, byte [esi + 0xb]
shl eax, 8
movzx ecx, byte [esi + 0xa]
or eax, ecx
shl eax, 8
movzx ecx, byte [esi + 9]
or eax, ecx
movzx ecx, byte [esi + 8]
shl eax, 8
or eax, ecx
mov dword [0x41fe78], eax
movzx eax, byte [esi + 0xf]
movzx ecx, byte [esi + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xc]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x12]
mov dword [0x41fe7c], eax
movzx eax, byte [esi + 0x13]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x11]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x10]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x16]
mov dword [0x41fe80], eax
movzx eax, byte [esi + 0x17]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x15]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x14]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x18]
mov dword [0x41fe84], eax
movzx eax, byte [esi + 0x19]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x1a]
mov bl, byte [esi + 1]
mov dword [0x41fe88], eax
movzx eax, byte [esi + 0x1b]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x1c]
mov dword [0x41fe8c], eax
movzx eax, byte [esi + 0x1d]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x1e]
mov dword [0x41fe90], eax
movzx eax, byte [esi + 0x1f]
shl eax, 8
mov byte [0x41fe71], bl
or eax, ecx
movzx ecx, byte [esi + 0x20]
mov dword [0x41fe94], eax
movzx eax, byte [esi + 0x21]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x24]
mov dword [0x41fe98], eax
movzx eax, byte [esi + 0x25]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x23]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x22]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x28]
and dword [ebp - 0x800], 0
mov dword [0x41fe9c], eax
movzx eax, byte [esi + 0x29]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x27]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x26]
shl eax, 8
or eax, ecx
push 0x7fc
mov dword [0x41fea0], eax
lea eax, [ebp - 0x7fc]
push 0
push eax
call fcn.00409cd0
mov ecx, 0x800
add esp, 0xc
lea eax, [edi + 0x30]
test word [edi + 2], cx
jne 0x405834
cmp bl, 3
jne 0x40587e
push eax
call fcn.00402c9d
pop ecx
test eax, eax
je 0x40587e
push 0x400
lea eax, [ebp - 0x800]
push eax
push 0xffffffffffffffff
lea eax, [edi + 0x30]
push eax
xor ebx, ebx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x405880
lea eax, [ebp + eax*2 - 0x804]
movzx ecx, word [eax]
cmp ecx, 0xd
je 0x405877
cmp ecx, 0xa
jne 0x405880
xor ecx, ecx
mov word [eax], cx
jmp 0x405880
xor ebx, ebx
cmp word [ebp - 0x800], bx
jne 0x405895
lea eax, [edi + 0x30]
push eax
call fcn.0040214e
pop ecx
jmp 0x40589b
lea eax, [ebp - 0x800]
push eax
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + 0x30]
push ebx
push eax
call fcn.00402bc4
pop ecx
pop ecx
cmp word [edi + 0x22], bx
jne 0x4058cb
movzx eax, byte [esi + 0x1b]
movzx ecx, byte [esi + 0x1a]
shl ax, 8
or ax, cx
mov word [edi + 0x22], ax
cmp dword [edi + 0xc], ebx
jne 0x4058f2
movzx eax, byte [esi + 0xf]
movzx ecx, byte [esi + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0xc]
shl eax, 8
or eax, ecx
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
jne 0x405920
movzx eax, byte [esi + 0x13]
movzx ecx, byte [esi + 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x11]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x10]
shl eax, 8
or eax, ecx
cdq
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x40594e
movzx eax, byte [esi + 0x17]
movzx ecx, byte [esi + 0x16]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x15]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 0x14]
shl eax, 8
or eax, ecx
cdq
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
movzx edi, byte [esi + 0x19]
movzx eax, byte [esi + 0x18]
movzx esi, byte [esi + 0x22]
push dword [0x41fe64]
shl edi, 8
or edi, eax
and esi, 0xf7
call fcn.0040aac4
pop ecx
mov ecx, eax
mov ebx, edx
mov eax, edi
cdq
add ecx, eax
adc ebx, edx
mov dword [0x420310], ecx
mov eax, esi
mov dword [0x420314], ebx
pop ebx
pop edi
pop esi
leave
ret