Function at 0x401e00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42f4a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov ecx, dword [ecx + 0x114]
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocStringLen
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x4020e0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [esp + 0x14]
push ecx
push 6
lea edx, [esp + 0x38]
xor eax, eax
push edx
mov dword [esp + 0x3c], eax
push ebp
mov word [esp + 0x44], ax
call ebx
cmp eax, esi
je 0x4020e0
movzx eax, word [esp + 0x30]
shl eax, 4
push eax
call fcn.004228f1
movzx ecx, word [esp + 0x34]
shl ecx, 4
mov edx, ecx
mov esi, eax
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
movzx ecx, word [esp + 0x30]
push 0
lea eax, [esp + 0x14]
push eax
shl ecx, 4
push ecx
push esi
push ebp
mov dword [esp + 0x38], esi
call ebx
test eax, eax
je 0x4020e0
movzx edx, word [esp + 0x30]
imul edx, edx, 0xe
push edx
call fcn.004228f1
movzx ecx, word [esp + 0x34]
imul ecx, ecx, 0xe
mov ebx, ecx
mov edx, eax
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
cmp word [esp + 0x30], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], 0
jbe 0x401ff0
mov dword [esp + 0x18], edx
add esi, 8
mov eax, dword [esi]
push eax
call fcn.004228f1
mov ecx, dword [esi]
mov edx, ecx
mov ebx, eax
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 4]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020e0
mov eax, dword [esp + 0x44]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ecx, dword [esi]
mov ebp, dword [esp + 0x14]
push ecx
push ebx
inc ebp
push 0x804
movzx edx, bp
push edx
mov edi, eax
push 3
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401fc4
lea eax, [esi - 8]
mov ecx, eax
mov edi, dword [ecx]
mov eax, dword [esp + 0x18]
mov edx, eax
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov ecx, dword [ecx + 8]
push ebx
mov dword [edx + 8], ecx
mov word [eax + 0xc], bp
call fcn.004228f6
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
add edx, 0xe
mov dword [esp + 0x18], edx
movzx edx, word [esp + 0x30]
inc eax
add esi, 0x10
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x401f13
mov esi, dword [esp + 0x24]
push esi
call fcn.004228f6
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [esp + 0x30]
imul eax, eax, 0xe
add eax, 6
push eax
call fcn.004228f1
movzx ecx, word [esp + 0x34]
imul ecx, ecx, 0xe
add ecx, 6
mov edx, ecx
shr ecx, 2
mov ebx, eax
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
mov eax, ebx
mov dword [eax], ecx
mov dx, word [esp + 0x34]
mov word [eax + 4], dx
movzx ecx, word [esp + 0x34]
mov eax, dword [esp + 0x2c]
imul ecx, ecx, 0xe
mov edx, ecx
shr ecx, 2
mov esi, eax
lea edi, [ebx + 6]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004228f6
mov edi, dword [esp + 0x4c]
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov esi, eax
movzx eax, word [esp + 0x30]
imul eax, eax, 0xe
add eax, 6
push eax
push ebx
push 0x804
push 2
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push ebx
call fcn.004228f6
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40210d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4