Function at 0x401d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c7d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
xor ebx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x401d6b
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004026b0
mov esi, dword [ebp - 0x2c]
push 0x104
push esi
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
cmp edi, 0xffffffff
jne 0x401d9e
push dword [esi - 8]
push esi
call fcn.00420547
mov edi, eax
mov eax, dword [ebp - 0x3c]
add esp, 8
test edi, edi
js 0x402061
cmp edi, dword [esi - 8]
jg 0x402061
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
cmp eax, 0x7a
jne 0x401e1e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x7fff
or eax, ecx
jge 0x401de1
push 0x7fff
lea ecx, [ebp - 0x2c]
call fcn.004026b0
mov esi, dword [ebp - 0x2c]
push 0x7fff
push esi
push dword [0x44acdc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0xffffffff
jne 0x401e04
push dword [esi - 8]
push esi
call fcn.00420547
add esp, 8
test eax, eax
js 0x402061
cmp eax, dword [esi - 8]
jg 0x402061
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ecx, 0xffffffff
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x40221b
mov edx, dword [0x448020]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
mov ecx, 0x448020
mov dword [ebp - 0x24], 0
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x34], edi
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4021f1
push 0
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021f1
cmp dword [ebp - 0x24], 4
jne 0x4021f1
push 2
push 0
push 0xfffffffffffffff4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4021f1
push 0
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021f1
cmp dword [ebp - 0x24], 4
jne 0x4021f1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4021f1
cmp dword [ebp - 0x30], 0
jbe 0x4021f1
push 0
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4021f1
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x30]
push eax
shr eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402720
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4021ee
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x24], eax
jne 0x4021ee
shr eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00402260
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x401f63
push eax
lea ecx, [ebp - 0x11]
call fcn.0041aa70
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x43b130
push 1
push 0
push 0x43b140
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [ebp - 0x34]
test eax, eax
js 0x4021d3
mov ebx, dword [ebp - 0x28]
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
call fcn.004023b0
lea edx, [ebp - 0x3c]
push edx
mov byte [ebp - 4], 4
push dword [eax]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x104]
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x4021d3
cmp word [ebp - 0x3c], 0
je 0x4021d3
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x28]
push str._InstallerInfo_TRTPolicy__Value
lea ecx, [ebp - 0x1c]
call fcn.004023b0
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 6
push dword [eax]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x94]
mov byte [ebp - 4], 5
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x402080
lea ecx, [ebp - 0x4c]
call fcn.00402380
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x40206b
push 3
push 0
lea eax, [ebp - 0x4c]
push eax
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x402085
push 0x80070057
call fcn.00402950
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x402085
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x402099
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
push str._InstallerInfo_Affid_text__
lea ecx, [ebp + 0xc]
call fcn.004023b0
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 8
push dword [eax]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x94]
mov byte [ebp - 4], 5
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x402128
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
and ebx, 1
call fcn.00402380
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x402113
push dword [ebp - 0x44]
mov ecx, dword [ebp + 8]
and ebx, 1
mov dword [ebp - 0x1c], ebx
call fcn.00402500
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40212d
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40212d
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x402141
mov dword [ebp - 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
push str._InstallerInfo_TRTPolicy_text__
lea ecx, [ebp + 0xc]
call fcn.004023b0
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 0x94]
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
js 0x4021be
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x4c]
and ebx, 1
call fcn.00402380
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x4021b0
push dword [ebp - 0x44]
mov ecx, dword [ebp + 0x10]
and ebx, 1
call fcn.00402500
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4021c0
lea eax, [ebp - 0x4c]
push eax
xor ebx, ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4021c0
xor ebx, ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4021d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4021d5
xor ebx, ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4021e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4021f1
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402218
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402239
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc