Function at 0x4380b0
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 0x4380e3
xor eax, eax
jmp 0x4384a0
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 0x43811a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4384a0
movzx edx, word [ebp - 0x20]
shl edx, 4
push edx
call fcn.004215b4
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43814a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4384a0
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 0x438192
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004231e5
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4384a0
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.004215b4
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 0x4381e8
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 0x4382d7
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 0x4381dc
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 0x438468
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 0x43834c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004231e5
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004231e5
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4384a0
xor eax, eax
mov word [ebp - 0x2c], ax
jmp 0x438360
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 0x43845a
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 0x4383b3
mov dword [ebp - 0x10], 0
jmp 0x43845a
mov edx, dword [ebp - 0x34]
push edx
call fcn.004215b4
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 0x4383fd
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.004231e5
add esp, 4
jmp 0x43845a
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 0x438443
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.004231e5
add esp, 4
jmp 0x43845a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004231e5
add esp, 4
jmp 0x438354
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
jmp 0x43846f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.004231e5
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.004231e5
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