Function at 0x4120f0
Capabilities:
Enumerate pe sections
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4285e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov edi, ecx
push 0
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add ecx, eax
movzx eax, word [ecx + 6]
lea ecx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
jle 0x412163
add ecx, 0x10
mov esi, eax
lea ecx, [ecx]
mov eax, dword [ecx + 4]
add eax, dword [ecx]
cmp eax, edx
jbe 0x41215b
mov edx, eax
add ecx, 0x28
sub esi, 1
jne 0x412150
mov esi, dword [edi + 0x10]
add edx, 4
mov dword [esp + 0x1c], edx
cmp esi, dword [edi + 0x14]
jbe 0x412177
call fcn.004160be
mov ebx, dword [edi + 4]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov esi, dword [edi + 0x14]
cmp dword [edi + 0x10], esi
jbe 0x412195
call fcn.004160be
mov eax, dword [edi + 4]
test ebx, ebx
je 0x4121a0
cmp ebx, eax
je 0x4121a5
call fcn.004160be
cmp dword [esp + 0x18], esi
je 0x4123a6
test ebx, ebx
jne 0x412336
call fcn.004160be
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x4121cc
call fcn.004160be
mov edx, dword [esp + 0x18]
push edx
add edi, 0x1c
push edi
lea edi, [esp + 0x34]
call fcn.00412e90
add esp, 8
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x4121fc
lea eax, [esp + 0x30]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x412369
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x412369
push edi
call fcn.00415dc8
add esp, 4
cmp dword [esp + 0x44], 0x10
mov ebx, eax
mov eax, dword [esp + 0x30]
jae 0x412250
lea eax, [esp + 0x30]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x412348
push 0
lea eax, [esp + 0x28]
push eax
push edi
push ebx
push esi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412341
cmp dword [esp + 0x24], edi
jne 0x412341
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + edi + 0x18]
push eax
mov dword [esp + 0x24], eax
call fcn.00415dc8
push edi
push ebx
lea ecx, [esp + 0x2c]
mov esi, eax
push ecx
push esi
call fcn.004224e0
add esp, 0x14
push esi
test eax, eax
jne 0x412380
call fcn.0041682d
push ebx
call fcn.0041682d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 8
lea ecx, [eax + edx + 0x110]
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x1c], ecx
jb 0x412307
mov edx, dword [esp + 0x30]
push edx
call fcn.004160ce
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41233d
call fcn.004160be
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x412324
call fcn.004160be
add dword [esp + 0x18], 0x1c
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
jmp 0x412188
mov eax, dword [ebx]
jmp 0x4121be
mov eax, dword [eax]
jmp 0x412316
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0041682d
add esp, 4
cmp dword [esp + 0x44], 0x10
jb 0x41237c
mov eax, dword [esp + 0x30]
push eax
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x4123aa
cmp dword [esp + 0x44], ebx
jb 0x41237c
mov edx, dword [esp + 0x30]
push edx
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x4123aa
call fcn.0041682d
push ebx
call fcn.0041682d
add esp, 8
cmp dword [esp + 0x44], 0x10
jb 0x41237c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x4123aa
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00415dd3
add esp, 0x44
ret