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

Disassembly:
push 0xffffffffffffffff
push 0x4393eb
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x449cd0]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449cd0]
xor eax, esp
push eax
lea eax, [esp + 0x844]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x854]
mov ebp, dword [esp + 0x858]
push 0x104
lea eax, [esp + 0x340]
push 0
push eax
call fcn.0041ec20
push 0x104
lea ecx, [esp + 0x248]
push 0
push ecx
call fcn.0041ec20
push 0x104
lea edx, [esp + 0x150]
push 0
push edx
call fcn.0041ec20
xor eax, eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], 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
lea eax, [esp + 0x360]
push eax
call fcn.00407900
lea ecx, [esp + 0x15c]
push ecx
call fcn.004078c0
lea eax, [esp + 0x160]
add esp, 0x2c
dec eax
cmp byte [0x44b3c4], 7
jne 0x4032d4
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4032b0
mov edx, dword [str.LdxCab.ini]
mov ecx, dword [0x43b844]
mov dword [eax], edx
mov edx, dword [0x43b848]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x403301
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4032d4
mov ecx, dword [str.LdCab.ini]
mov edx, dword [0x43b838]
mov dword [eax], ecx
mov cx, word [0x43b83c]
mov dword [eax + 4], edx
mov dl, byte [0x43b83e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x134]
push eax
push 0x104
lea ecx, [esp + 0x240]
push ecx
push 0x43b830
push str.ExeFile
push str.CabFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xf8
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0041ec20
lea eax, [esp + 0x120]
push 0x20
push eax
call fcn.004012a0
add esp, 0x14
xor eax, eax
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x1c], cl
inc eax
test cl, cl
jne 0x403350
xor eax, eax
mov cl, byte [esp + eax + 0x238]
mov byte [esp + eax + 0x48], cl
inc eax
test cl, cl
jne 0x403362
lea ecx, [esp + 0x33c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402ae0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x854], 0
call fcn.00408170
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0xac]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4033b0
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 0x4033da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x84c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403405
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x400
lea ecx, [esp + 0x444]
push 0
push ecx
mov dword [esp + 0x11c], 0xf8
call fcn.0041ec20
push ebx
call fcn.00407b50
lea edx, [esp + 0x50]
push edx
mov esi, eax
push 0
push ebx
mov dword [esp + 0x58], esi
call fcn.00407b90
add esp, 0x1c
and esi, 0x800001ff
jns 0x403450
dec esi
or esi, 0xfffffe00
inc esi
mov eax, 0x200
sub eax, esi
lea edi, [esp + eax + 0x440]
mov ecx, 0x3e
lea esi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0xf8]
test ebp, ebp
je 0x403477
mov esi, ebp
jmp 0x403487
push 0x43b814
push ebx
call fcn.0041e83b
add esp, 8
mov esi, eax
test esi, esi
je 0x4034ab
push 2
push 0
push 0
push esi
call fcn.0041ed36
push esi
push edi
lea eax, [esp + 0x458]
push 1
push eax
call fcn.0041e3d0
add esp, 0x20
test ebp, ebp
jne 0x4034bc
test esi, esi
je 0x4034bc
push esi
call fcn.0041e1f2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x844]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.0041d4f4
add esp, 0x83c
ret