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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ebx
neg edi
sbb edi, edi
and edi, 0xfffffff0
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
add edi, 0x2e
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], edi
test eax, eax
je 0x45c132
cmp dword [eax], edi
jb 0x45c627
test edx, edx
je 0x45c13a
mov edi, dword [edx]
jmp 0x45c187
mov ecx, dword [ebp - 0x40]
push ecx
push edi
lea edx, [ebp - 0x34]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, edi
jae 0x45c181
call dword [sym.imp.MSVCR100.dll__errno]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax]
test ecx, ecx
je 0x45c638
pop edi
mov dword [ecx + 4], eax
mov dword [ecx], 5
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3c]
lea edi, [ebp - 0x34]
mov eax, 0x5548e8
test ebx, ebx
jne 0x45c195
mov eax, 0x5548f0
mov edx, dword [edi]
cmp edx, dword [eax]
jne 0x45c627
add edi, 4
test ebx, ebx
jne 0x45c1c1
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
mov ecx, 0x100
imul ax, cx
add ax, dx
movzx eax, ax
add edi, 2
jmp 0x45c1c3
xor eax, eax
mov word [esi], ax
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
mov edx, 0x100
imul cx, dx
add cx, ax
movzx eax, cx
mov word [esi + 2], ax
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
imul cx, dx
add cx, ax
movzx eax, cx
mov word [esi + 4], ax
movzx ecx, byte [edi + 5]
movzx eax, byte [edi + 4]
imul cx, dx
add cx, ax
movzx eax, cx
mov word [esi + 6], ax
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
imul cx, dx
add cx, ax
movzx eax, cx
movzx ecx, byte [edi + 9]
imul cx, dx
movzx edx, byte [edi + 8]
add cx, dx
movzx edx, cx
mov ecx, eax
call fcn.0045ca90
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
movzx eax, byte [edi + 0xd]
movzx ecx, byte [edi + 0xc]
movzx edx, byte [edi + 0xb]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0xa]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0x11]
movzx edx, byte [edi + 0x10]
movzx ecx, byte [edi + 0xf]
shl eax, 8
add eax, edx
movzx edx, byte [edi + 0xe]
shl eax, 8
add eax, ecx
shl eax, 8
add eax, edx
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x15]
movzx ecx, byte [edi + 0x14]
movzx edx, byte [edi + 0x13]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0x12]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov dword [esi + 0x18], eax
movzx edx, byte [edi + 0x17]
movzx ecx, byte [edi + 0x16]
mov eax, 0x100
imul dx, ax
add dx, cx
movzx ecx, dx
mov word [esi + 0x20], cx
movzx edx, byte [edi + 0x19]
imul dx, ax
movzx eax, byte [edi + 0x18]
add dx, ax
movzx edx, dx
add edi, 0x1a
mov word [esi + 0x28], dx
xor eax, eax
cmp ebx, eax
je 0x45c2f6
xor ebx, ebx
mov word [esi + 0x30], bx
mov word [esi + 0x32], bx
mov word [esi + 0x34], bx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
jmp 0x45c38f
movzx eax, byte [edi + 1]
mov ebx, 0x100
imul ax, bx
movzx ebx, byte [edi]
add ax, bx
movzx eax, ax
mov word [esi + 0x30], ax
movzx eax, byte [edi + 3]
mov ebx, 0x100
imul ax, bx
movzx ebx, byte [edi + 2]
add ax, bx
movzx eax, ax
mov word [esi + 0x32], ax
movzx eax, byte [edi + 5]
mov ebx, 0x100
imul ax, bx
movzx ebx, byte [edi + 4]
add ax, bx
movzx eax, ax
mov word [esi + 0x34], ax
movzx eax, byte [edi + 9]
movzx ebx, byte [edi + 8]
shl eax, 8
add eax, ebx
movzx ebx, byte [edi + 7]
shl eax, 8
add eax, ebx
movzx ebx, byte [edi + 6]
shl eax, 8
add eax, ebx
mov dword [esi + 0x38], eax
movzx eax, byte [edi + 0xd]
movzx ebx, byte [edi + 0xc]
shl eax, 8
add eax, ebx
movzx ebx, byte [edi + 0xb]
shl eax, 8
add eax, ebx
movzx ebx, byte [edi + 0xa]
shl eax, 8
add eax, ebx
add edi, 0xe
mov dword [esi + 0x3c], eax
xor eax, eax
movzx ebx, word [esi + 0x30]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov eax, ecx
add edx, eax
add ebx, edx
mov edx, dword [ebp - 0x4c]
add dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], eax
test edx, edx
je 0x45c3e1
mov ebx, dword [ebp - 0x44]
cmp dword [edx], ebx
jae 0x45c3e1
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45c638
pop edi
mov dword [eax], 0x13
mov dword [eax + 4], 0
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x48], 0
je 0x45c50d
test cx, cx
je 0x45c44c
inc eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45c415
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45c411
mov dword [eax], 0xe
mov dword [eax + 4], ebx
xor ebx, ebx
jmp 0x45c441
mov eax, dword [ebp - 0x38]
push eax
push edi
push ebx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + eax]
add edi, eax
add esp, 0xc
mov byte [ecx], 0
mov eax, ebx
cmp ebx, ecx
jae 0x45c441
cmp byte [eax], 0
jne 0x45c43c
mov byte [eax], 0x20
inc eax
cmp eax, ecx
jb 0x45c434
mov dword [esi + 0x1c], ebx
test ebx, ebx
je 0x45c638
movzx eax, word [esi + 0x28]
test ax, ax
je 0x45c49b
mov ebx, eax
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x45c480
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45c47c
mov dword [eax], 0xe
mov dword [eax + 4], 0
xor eax, eax
jmp 0x45c490
push ebx
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x38]
add esp, 0xc
add edi, ebx
mov dword [esi + 0x24], eax
test eax, eax
je 0x45c638
movzx eax, word [esi + 0x30]
test ax, ax
je 0x45c4ea
mov ebx, eax
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x45c4cf
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x45c4cb
mov dword [eax], 0xe
mov dword [eax + 4], 0
xor eax, eax
jmp 0x45c4df
push ebx
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0x38]
add esp, 0xc
add edi, ebx
mov dword [esi + 0x2c], eax
test eax, eax
je 0x45c638
mov eax, dword [ebp - 0x48]
mov dword [eax], edi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x45c4fb
mov ecx, dword [ebp - 0x44]
sub dword [eax], ecx
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x3c]
test cx, cx
je 0x45c530
mov ecx, dword [ebp - 0x40]
push 1
push ecx
mov edi, eax
call fcn.0045cb20
add esp, 8
mov dword [esi + 0x1c], eax
test eax, eax
je 0x45c638
movzx eax, word [esi + 0x28]
test ax, ax
je 0x45c5a0
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45c55b
test ebx, ebx
je 0x45c593
mov dword [ebx], 0xe
mov dword [ebx + 4], eax
jmp 0x45c593
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
push edx
push eax
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x38]
jae 0x45c595
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test ebx, ebx
je 0x45c593
mov dword [ebx], 5
mov dword [ebx + 4], eax
xor edi, edi
mov dword [esi + 0x24], edi
test edi, edi
je 0x45c638
movzx eax, word [esi + 0x30]
test ax, ax
je 0x45c4ef
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45c5cf
test ebx, ebx
je 0x45c607
mov dword [ebx], 0xe
mov dword [ebx + 4], eax
jmp 0x45c607
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x38]
push ecx
push edx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x38]
jae 0x45c609
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
test ebx, ebx
je 0x45c607
mov dword [ebx], 5
mov dword [ebx + 4], eax
xor edi, edi
mov dword [esi + 0x2c], edi
test edi, edi
jne 0x45c4ef
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x45c638
mov dword [ecx], 0x13
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0045f06e
mov esp, ebp
pop ebp
ret