Function at 0x43f020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ff46
mov eax, dword fs:[0]
push eax
sub esp, 0x7a8
mov eax, dword [0x568910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7b4], 0x208
mov ecx, dword [ebp + 8]
call fcn.004042e0
cmp eax, 5
jae 0x43f06c
mov eax, 0x80004005
jmp 0x43f5fd
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x730]
push ecx
call fcn.00439ea0
add esp, 8
mov dword [ebp - 4], 0
push fcn.004e960d
lea edx, [ebp - 0x7b0]
push edx
lea ecx, [ebp - 0x730]
call fcn.004050e0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x7a4]
push ecx
lea ecx, [ebp - 0x730]
call fcn.00405100
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x7a8]
push eax
lea ecx, [ebp - 0x730]
call fcn.004050e0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x7ac]
push edx
call fcn.0043f750
add esp, 0x14
mov edx, 0x55056c
lea ecx, [ebp - 0x730]
call fcn.00412380
movzx eax, al
test eax, eax
je 0x43f117
mov dword [ebp - 0x7a0], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004042b0
mov eax, dword [ebp - 0x7a0]
jmp 0x43f5fd
mov byte [ebp - 0x308], 0
push 0x207
push 0
lea ecx, [ebp - 0x307]
push ecx
call fcn.004eb650
add esp, 0xc
xor edx, edx
mov word [ebp - 0x718], dx
push 0x40e
push 0
lea eax, [ebp - 0x716]
push eax
call fcn.004eb650
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xb0], cx
push 0x4c
push 0
lea edx, [ebp - 0xae]
push edx
call fcn.004eb650
add esp, 0xc
xor eax, eax
mov word [ebp - 0x100], ax
push 0x4c
push 0
lea ecx, [ebp - 0xfe]
push ecx
call fcn.004eb650
add esp, 0xc
xor edx, edx
mov word [ebp - 0x60], dx
push 0x4c
push 0
lea eax, [ebp - 0x5e]
push eax
call fcn.004eb650
add esp, 0xc
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x100]
push edx
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404250
push eax
call dword [sym.imp.msi.dll_MsiEnumComponentCostsW]
mov dword [ebp - 0x778], eax
cmp dword [ebp - 0x778], 0
jne 0x43f26a
mov dword [ebp - 0x79c], 0x410
lea ecx, [ebp - 0x79c]
push ecx
lea edx, [ebp - 0x718]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.msi.dll_MsiAdvertiseScriptW]
mov dword [ebp - 0x788], eax
cmp dword [ebp - 0x788], 3
jne 0x43f243
lea edx, [ebp - 0x718]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00411380
mov dword [ebp - 0x78c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004042b0
mov eax, dword [ebp - 0x78c]
jmp 0x43f5fd
mov dword [ebp - 0x790], 0x57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004042b0
mov eax, dword [ebp - 0x790]
jmp 0x43f5fd
mov dword [ebp - 0x778], 0x57
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
call fcn.00404250
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x768], eax
cmp dword [ebp - 0x768], 0xffffffff
jne 0x43f2cd
mov eax, dword [ebp - 0x778]
mov dword [ebp - 0x798], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004042b0
mov eax, dword [ebp - 0x798]
jmp 0x43f5fd
mov dword [ebp - 0x774], 0
mov dword [ebp - 0x76c], 0
push 0
lea ecx, [ebp - 0x76c]
push ecx
push 4
lea edx, [ebp - 0x774]
push edx
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f309
jmp 0x43f5cc
cmp dword [ebp - 0x76c], 4
je 0x43f317
jmp 0x43f5cc
cmp dword [ebp - 0x774], 0x4c
je 0x43f325
jmp 0x43f5cc
push 0
push 0
push 0x14
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x43f34c
jmp 0x43f5cc
push 0
lea edx, [ebp - 0x76c]
push edx
push 4
lea eax, [ebp - 0x774]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f374
jmp 0x43f5cc
cmp dword [ebp - 0x76c], 4
je 0x43f382
jmp 0x43f5cc
push 0
push 0
push 0x4c
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x43f3a9
jmp 0x43f5cc
mov eax, dword [ebp - 0x774]
and eax, 1
je 0x43f420
xor ecx, ecx
mov word [ebp - 0x77c], cx
push 0
lea edx, [ebp - 0x76c]
push edx
push 2
lea eax, [ebp - 0x77c]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f3e5
jmp 0x43f5cc
cmp dword [ebp - 0x76c], 2
je 0x43f3f3
jmp 0x43f5cc
push 1
push 0
movzx edx, word [ebp - 0x77c]
push edx
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x43f420
jmp 0x43f5cc
push 1
push 0
push 0x10
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x43f447
jmp 0x43f5cc
push 0
lea edx, [ebp - 0x76c]
push edx
push 4
lea eax, [ebp - 0x774]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f46f
jmp 0x43f5cc
cmp dword [ebp - 0x76c], 4
je 0x43f47d
jmp 0x43f5cc
push 1
push 0
mov edx, dword [ebp - 0x774]
sub edx, 0x14
push edx
mov eax, dword [ebp - 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x770], eax
cmp dword [ebp - 0x770], 0xffffffff
jne 0x43f4ac
jmp 0x43f5cc
mov dword [ebp - 0x780], 0
mov byte [ebp - 0x761], 0
push 0x208
push 0
lea ecx, [ebp - 0x308]
push ecx
call fcn.004eb650
add esp, 0xc
cmp dword [ebp - 0x780], 0x204
jb 0x43f50e
push str.resolveShortcutFromFile_buffer_is_too_small
push 0x8b9
push str.utility::usystem::resolveShortcutFromFile
call fcn.00436000
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x308]
push edx
call fcn.004eb650
add esp, 0xc
jmp 0x43f567
push 0
lea eax, [ebp - 0x76c]
push eax
push 1
lea ecx, [ebp - 0x761]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f536
jmp 0x43f5cc
mov eax, dword [ebp - 0x780]
mov cl, byte [ebp - 0x761]
mov byte [ebp + eax - 0x308], cl
mov edx, dword [ebp - 0x780]
add edx, 1
mov dword [ebp - 0x780], edx
movsx eax, byte [ebp - 0x761]
test eax, eax
jne 0x43f4d3
lea ecx, [ebp - 0x308]
push ecx
lea ecx, [ebp - 0x748]
call fcn.00418d00
mov byte [ebp - 4], 1
lea edx, [ebp - 0x748]
push edx
lea eax, [ebp - 0x760]
push eax
call fcn.00441a60
add esp, 8
mov dword [ebp - 0x784], eax
mov ecx, dword [ebp - 0x784]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00411340
lea ecx, [ebp - 0x760]
call fcn.004042b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x748]
call fcn.0041a9c0
mov dword [ebp - 0x778], 0
mov edx, dword [ebp - 0x768]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x778]
mov dword [ebp - 0x794], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x730]
call fcn.004042b0
mov eax, dword [ebp - 0x794]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0876
mov esp, ebp
pop ebp
ret