Function at 0x433bc0
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 0x433bf3
xor eax, eax
jmp 0x433fb0
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 0x433c2a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x433fb0
movzx edx, word [ebp - 0x20]
shl edx, 4
push edx
call fcn.0041fcc4
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x433c5a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x433fb0
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 0x433ca2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.00421915
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x433fb0
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.0041fcc4
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 0x433cf8
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 0x433de7
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 0x433cec
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 0x433f78
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 0x433e5c
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00421915
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00421915
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x433fb0
xor eax, eax
mov word [ebp - 0x2c], ax
jmp 0x433e70
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 0x433f6a
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 0x433ec3
mov dword [ebp - 0x10], 0
jmp 0x433f6a
mov edx, dword [ebp - 0x34]
push edx
call fcn.0041fcc4
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 0x433f0d
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00421915
add esp, 4
jmp 0x433f6a
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 0x433f53
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00421915
add esp, 4
jmp 0x433f6a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00421915
add esp, 4
jmp 0x433e64
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
jmp 0x433f7f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00421915
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.00421915
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