Function at 0x488ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0
push 0x80
push 3
push 0
push 0
push bind
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 0x488cd3
xor eax, eax
jmp 0x489089
mov dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 6
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x488d0a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x489089
movzx edx, word [ebp - 0x5c]
shl edx, 4
push edx
call fcn.0047a4ed
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x488d3a
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x489089
push 0
lea edx, [ebp - 0x20]
push edx
movzx eax, word [ebp - 0x5c]
shl eax, 4
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x488d82
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047a4e8
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x489089
movzx eax, word [ebp - 0x5c]
imul ecx, eax, 0xe
add ecx, 6
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0047a4ed
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0x60]
mov word [ecx], dx
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 0x5e]
mov word [eax + 2], cx
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x5c]
mov word [edx + 4], ax
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x488dd8
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 0x5c]
cmp eax, ecx
jge 0x488eca
movzx edx, word [ebp - 4]
shl edx, 4
movzx eax, word [ebp - 4]
imul ecx, eax, 0xe
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dl, byte [esi + edx]
mov byte [eax + ecx + 6], dl
movzx eax, word [ebp - 4]
shl eax, 4
movzx ecx, word [ebp - 4]
imul edx, ecx, 0xe
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov al, byte [esi + eax + 1]
mov byte [ecx + edx + 7], al
movzx ecx, word [ebp - 4]
shl ecx, 4
movzx edx, word [ebp - 4]
imul eax, edx, 0xe
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov cl, byte [esi + ecx + 2]
mov byte [edx + eax + 8], cl
movzx edx, word [ebp - 4]
shl edx, 4
movzx eax, word [ebp - 4]
imul ecx, eax, 0xe
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dl, byte [esi + edx + 3]
mov byte [eax + ecx + 9], dl
movzx eax, word [ebp - 4]
shl eax, 4
movzx ecx, word [ebp - 4]
imul edx, ecx, 0xe
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov ax, word [esi + eax + 4]
mov word [ecx + edx + 0xa], ax
movzx ecx, word [ebp - 4]
shl ecx, 4
movzx edx, word [ebp - 4]
imul eax, edx, 0xe
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov cx, word [esi + ecx + 6]
mov word [edx + eax + 0xc], cx
movzx edx, word [ebp - 4]
shl edx, 4
movzx eax, word [ebp - 4]
imul ecx, eax, 0xe
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + edx + 8]
mov dword [eax + ecx + 0xe], edx
movzx eax, word [ebp - 4]
add eax, 1
movzx ecx, word [ebp - 4]
imul edx, ecx, 0xe
mov ecx, dword [ebp - 0xc]
mov word [ecx + edx + 0x12], ax
jmp 0x488dcc
cmp dword [ebp + 8], 0
je 0x489040
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0x804
movzx ecx, word [ebp + 0x10]
push ecx
push 0xe
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x488f30
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0047a4e8
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0047a4e8
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x489089
xor edx, edx
mov word [ebp - 8], dx
jmp 0x488f44
mov ax, word [ebp - 8]
add ax, 1
mov word [ebp - 8], ax
movzx ecx, word [ebp - 8]
movzx edx, word [ebp - 0x5c]
cmp ecx, edx
jge 0x48903e
movzx eax, word [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x24], edx
push 0
push 0
movzx eax, word [ebp - 8]
shl eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x488f97
mov dword [ebp - 0x14], 0
jmp 0x48903e
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0047a4ed
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], edx
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x488fe1
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047a4e8
add esp, 4
jmp 0x48903e
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x804
movzx edx, word [ebp - 8]
imul eax, edx, 0xe
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + eax + 0x12]
push edx
push 3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x489027
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0047a4e8
add esp, 4
jmp 0x48903e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0047a4e8
add esp, 4
jmp 0x488f38
jmp 0x489047
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.0047a4e8
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.0047a4e8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret