Function at 0x4042a0
Capabilities:
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43e1bb
mov eax, dword fs:[0]
push eax
sub esp, 0xb5c
mov eax, dword [0x44fb64]
xor eax, esp
mov dword [esp + 0xb58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44fb64]
xor eax, esp
push eax
lea eax, [esp + 0xb70]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb84]
mov ebp, dword [esp + 0xb80]
push 0x208
lea ecx, [esp + 0x360]
push 0
push ecx
mov dword [esp + 0x2c], eax
call fcn.00424c40
add esp, 0xc
push 0x208
lea edx, [esp + 0x568]
push 0
push edx
call fcn.00424c40
add esp, 0xc
push 0x208
lea eax, [esp + 0x158]
push 0
push eax
call fcn.00424c40
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
add esp, 0xc
push 0x208
lea ecx, [esp + 0x360]
push ecx
push eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], eax
call esi
push 0x208
lea edx, [esp + 0x158]
push edx
push 0
call esi
lea eax, [esp + 0x154]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4043a0
sub eax, ecx
add eax, 0xffffffff
js 0x4043be
mov cl, 0x5c
cmp byte [esp + eax + 0x154], cl
je 0x4043be
sub eax, 1
jns 0x4043b0
mov byte [esp + eax + 0x154], 0
lea eax, [esp + 0x154]
dec eax
cmp byte [0x453d04], 7
jne 0x404400
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4043d7
mov ecx, dword [str.LdxCab.ini]
mov edx, dword [0x447b60]
mov dword [eax], ecx
mov ecx, dword [0x447b64]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x40442d
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404400
mov edx, dword [str.LdCab.ini]
mov ecx, dword [0x447b6c]
mov dword [eax], edx
mov dx, word [0x447b70]
mov dword [eax + 4], ecx
mov cl, byte [0x447b72]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
lea edx, [esp + 0x154]
push edx
push 0x208
lea eax, [esp + 0x56c]
push eax
push 0x448368
push str.ExeFile
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xf8
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.00424c40
add esp, 0xc
lea ebx, [esp + 0x134]
call fcn.00407db0
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x3c], cl
inc eax
test cl, cl
jne 0x404480
xor eax, eax
mov cl, byte [esp + eax + 0x564]
mov byte [esp + eax + 0x68], cl
inc eax
test cl, cl
jne 0x404492
lea edx, [esp + 0x35c]
push edx
lea ecx, [esp + 0x1c]
call fcn.004098c0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb7c], 0
call fcn.0040a5c0
mov eax, dword [eax]
lea edx, [esp + 0xd0]
add esp, 4
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4044e0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40450a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xb78], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x770]
push 0
push ecx
mov dword [esp + 0x13c], 0xf8
call fcn.00424c40
add esp, 0xc
push 0x447a7c
push ebp
xor edi, edi
call fcn.00422167
mov esi, eax
add esp, 8
test esi, esi
je 0x40458d
push 2
push edi
push esi
call fcn.004236ef
add esp, 0xc
push esi
call fcn.00423911
add esp, 4
push esi
mov edi, eax
call fcn.004221f5
add esp, 4
push 0
push ebp
mov dword [esp + 0x64], edi
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
test esi, esi
je 0x4045d9
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4045d2
lea edx, [esp + 0x60]
test edx, edx
je 0x4045d2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
and edi, 0x800001ff
jns 0x4045e9
dec edi
or edi, 0xfffffe00
inc edi
mov ebx, 0x200
sub ebx, edi
push 2
lea edi, [esp + ebx + 0x770]
mov ecx, 0x3e
lea esi, [esp + 0x40]
push 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
push 0
push esi
call fcn.00422bac
push esi
add ebx, 0xf8
push ebx
lea edx, [esp + 0x784]
push 1
push edx
call fcn.004223d3
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb58]
xor ecx, esp
call fcn.0042179d
add esp, 0xb68
ret