Function at 0x4375e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x437613
xor eax, eax
jmp 0x4379d0
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 6
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43764a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4379d0
movzx edx, word [ebp - 0x20]
shl edx, 4
push edx
call fcn.00420aa4
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43767a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4379d0
push 0
lea edx, [ebp - 8]
push edx
movzx eax, word [ebp - 0x20]
shl eax, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4376c2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004226d5
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4379d0
movzx eax, word [ebp - 0x20]
imul eax, eax, 0xe
add eax, 0x14
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00420aa4
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cx, word [ebp - 0x24]
mov word [eax], cx
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x22]
mov word [edx + 2], ax
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0x20]
mov word [ecx + 4], dx
xor eax, eax
mov word [ebp - 0x28], ax
jmp 0x437718
mov cx, word [ebp - 0x28]
add cx, 1
mov word [ebp - 0x28], cx
movzx edx, word [ebp - 0x28]
movzx eax, word [ebp - 0x20]
cmp edx, eax
jge 0x437807
movzx ecx, word [ebp - 0x28]
shl ecx, 4
movzx edx, word [ebp - 0x28]
imul edx, edx, 0xe
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov cl, byte [esi + ecx]
mov byte [eax + edx + 6], cl
movzx edx, word [ebp - 0x28]
shl edx, 4
movzx eax, word [ebp - 0x28]
imul eax, eax, 0xe
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dl, byte [esi + edx + 1]
mov byte [ecx + eax + 7], dl
movzx eax, word [ebp - 0x28]
shl eax, 4
movzx ecx, word [ebp - 0x28]
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov al, byte [esi + eax + 2]
mov byte [edx + ecx + 8], al
movzx ecx, word [ebp - 0x28]
shl ecx, 4
movzx edx, word [ebp - 0x28]
imul edx, edx, 0xe
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov cl, byte [esi + ecx + 3]
mov byte [eax + edx + 9], cl
movzx edx, word [ebp - 0x28]
shl edx, 4
movzx eax, word [ebp - 0x28]
imul eax, eax, 0xe
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dx, word [esi + edx + 4]
mov word [ecx + eax + 0xa], dx
movzx eax, word [ebp - 0x28]
shl eax, 4
movzx ecx, word [ebp - 0x28]
imul ecx, ecx, 0xe
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov ax, word [esi + eax + 6]
mov word [edx + ecx + 0xc], ax
movzx ecx, word [ebp - 0x28]
shl ecx, 4
movzx edx, word [ebp - 0x28]
imul edx, edx, 0xe
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + ecx + 8]
mov dword [eax + edx + 0xe], ecx
movzx edx, word [ebp - 0x28]
imul edx, edx, 0xe
mov eax, dword [ebp - 4]
mov cx, word [ebp - 0x28]
mov word [eax + edx + 0x12], cx
jmp 0x43770c
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x437998
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0x804
movzx edx, word [ebp + 0x10]
push edx
push 0xe
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43787c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004226d5
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004226d5
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4379d0
xor eax, eax
mov word [ebp - 0x2c], ax
jmp 0x437890
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
movzx edx, word [ebp - 0x2c]
movzx eax, word [ebp - 0x20]
cmp edx, eax
jge 0x43798a
movzx ecx, word [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0x34], eax
push 0
push 0
movzx ecx, word [ebp - 0x2c]
shl ecx, 4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4378e3
mov dword [ebp - 0x10], 0
jmp 0x43798a
mov edx, dword [ebp - 0x34]
push edx
call fcn.00420aa4
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x38], eax
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43792d
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.004226d5
add esp, 4
jmp 0x43798a
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x804
movzx eax, word [ebp - 0x2c]
imul eax, eax, 0xe
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax + 0x12]
push edx
push 3
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x437973
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.004226d5
add esp, 4
jmp 0x43798a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004226d5
add esp, 4
jmp 0x437884
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
jmp 0x43799f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004226d5
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.004226d5
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret