Function at 0x40fb50
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ae86
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [eax], bl
mov eax, dword [esi + 0x41c]
cmp eax, 1
je 0x40fb92
cmp eax, 3
je 0x40fb92
cmp eax, 4
jne 0x40fdd0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x435654]
mov dword [esp + 0x10], eax
mov dword [esp + 0x22c], ebx
mov dword [esp + 0x14], eax
lea ecx, [esi + 0xa]
lea edx, [esp + 0x14]
push ecx
push str.__s_
push edx
mov byte [esp + 0x238], 1
call fcn.00420183
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ebp, [esi + 0x10e]
push 0x104
push eax
push ecx
push ebp
mov ecx, esi
call fcn.00412320
cmp eax, ebx
jne 0x40fc0f
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push 3
push edx
push eax
jmp 0x40fd5f
lea ecx, [esp + 0x1c]
push 0x2c
push ecx
call fcn.00414d30
add esp, 8
cmp eax, ebx
je 0x40fc24
mov byte [eax], bl
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.00424d54
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x20]
push 0x104
push eax
push 0x438904
push str.CopyFiles
push ecx
call fcn.00406d60
add esp, 0x18
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40fbf9
lea ecx, [esp + 0x10]
call fcn.00424ba2
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
xor eax, eax
cmp ecx, ebx
jl 0x40fd1a
mov cl, byte [esp + edi + 0x1c]
cmp cl, 0x2c
jne 0x40fca1
mov byte [esp + eax + 0x120], bl
jmp 0x40fca8
mov byte [esp + eax + 0x120], cl
cmp byte [esp + eax + 0x120], bl
jne 0x40fcfd
cmp eax, ebx
je 0x40fdac
lea ecx, [esp + 0x120]
push ecx
call fcn.00406e90
mov al, byte [esp + 0x124]
add esp, 4
cmp al, 0x40
je 0x40fcf9
cmp al, bl
je 0x40fcf9
push ebp
lea edx, [esp + 0x124]
push ebx
push edx
push str.DestinationDirs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 0x17
je 0x40fd09
cmp eax, 0x101d3
je 0x40fd09
xor eax, eax
jmp 0x40fcfe
inc eax
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, ecx
jle 0x40fc8f
jmp 0x40fd1a
lea eax, [esp + 0x120]
lea ecx, [esp + 0x10]
push eax
call fcn.00424d54
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x40fdac
push ebp
lea ecx, [esp + 0x20]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0x1c]
push edx
call fcn.00406e90
mov al, byte [esp + 0x20]
add esp, 4
cmp al, bl
jne 0x40fd99
mov ax, word [esi + 0x4d6]
mov ecx, dword [esi + 0x4d0]
push 3
push eax
push ecx
call fcn.00406fa0
add esp, 0xc
mov ecx, esi
push eax
push 2
call fcn.0040cdb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x40fdd5
mov eax, dword [esp + 0x234]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], bl
call fcn.00424c17
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 4