Function at 0x41d107
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xa8
mov eax, 0x4775f0
call fcn.0045053c
mov ebx, ecx
xor eax, eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push str.PrepareRemotePatchDescriptor
call fcn.0041dfa0
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00409480
push eax
lea ecx, [ebp - 0x80]
call fcn.00408c39
mov byte [ebp - 4], 2
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x5c], str.Patches
rep stosd dword es:[edi], eax
push 8
pop ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x58], str.Patches_Dll
rep stosd dword es:[edi], eax
mov dword [ebp - 0x8c], 2
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x54], eax
or edi, 0xffffffff
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x50], eax
test ebx, ebx
je 0x41d517
cmp word [ebx], si
je 0x41d517
mov edx, str..ini
lea ecx, [ebp - 0x74]
call fcn.0041e774
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00409575
mov esi, dword [ebp - 0x80]
cmp dword [esi - 0xc], 0
jne 0x41d1d2
mov dword [ebp - 0x64], 0x52
jmp 0x41d521
push 0
push ecx
mov edx, esi
mov ecx, ebx
call fcn.0041c6ed
mov dword [ebp - 0x64], eax
pop ecx
pop ecx
test eax, eax
jne 0x41d521
xor ebx, ebx
mov dword [ebp - 0x70], edi
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], ebx
call fcn.0040c4a0
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x64], eax
test eax, eax
je 0x41d228
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], edi
je 0x41d521
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], edi
jmp 0x41d521
push ebx
mov ecx, esi
call fcn.004215c0
mov dword [ebp - 0x64], eax
pop ecx
test eax, eax
jne 0x41d20a
cmp byte [0x4a03d4], al
je 0x41d279
push dword [0x4a042c]
lea eax, [ebp - 0x28]
push 0x48c168
push 0xb
push eax
call fcn.0041dae0
push dword [0x4a042c]
lea eax, [ebp - 0x4c]
push str._u_Dll
push 0x10
push eax
call fcn.0041dae0
add esp, 0x20
mov dword [ebp - 0x8c], 4
push 0x10002
call fcn.00454c58
mov ebx, eax
mov dword [ebp - 0xa0], ebx
pop ecx
test ebx, ebx
jne 0x41d29c
mov dword [ebp - 0x64], 8
jmp 0x41d20a
xor eax, eax
mov dword [ebp - 0x74], eax
push esi
push 0x7fff
push ebx
push dword [ebp + eax*4 - 0x5c]
xor ecx, ecx
mov dword [ebx + 0xfffe], ecx
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push ebx
lea ecx, [ebp - 0x60]
mov edi, ebx
call fcn.0040a211
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x60]
cmp dword [eax - 0xc], 0
je 0x41d4d4
mov ebx, dword [ebp - 0x74]
lea ecx, [ebp - 0x84]
call fcn.0040958d
mov byte [ebp - 4], 7
xor eax, eax
mov byte [ebp - 0x88], al
mov byte [ebp - 4], 8
call fcn.00409480
push eax
lea ecx, [ebp - 0x78]
call fcn.00408c39
mov byte [ebp - 4], 0xa
call fcn.00409480
push eax
lea ecx, [ebp - 0x68]
call fcn.00408c39
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax - 0xc]
lea edi, [edi + eax*2]
add edi, 2
mov dword [ebp - 0x7c], edi
call fcn.0041ab4d
mov ecx, eax
call fcn.0040a092
xor eax, eax
lea ecx, [ebp - 0x60]
push eax
push 0x3d
call fcn.0041c66a
mov dword [ebp - 0x94], eax
cmp eax, 0xffffffff
jne 0x41d377
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 6
jmp 0x41d4a5
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040c287
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x78]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x90]
lea ecx, [ecx - 0x10]
call fcn.00409575
lea ecx, [ebp - 0x78]
call fcn.0041ab4d
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x60]
inc eax
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00416d0f
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x68]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx - 0x10]
call fcn.00409575
lea ecx, [ebp - 0x68]
call fcn.0040a092
mov edi, dword [ebp - 0x78]
push edi
call fcn.004653ca
pop ecx
mov ecx, dword [0x4a0398]
mov dword [ebp - 0x9c], eax
test ecx, ecx
jne 0x41d423
test eax, eax
je 0x41d412
cmp eax, dword [0x4a039c]
ja 0x41d438
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00409575
jmp 0x41d492
cmp ecx, eax
je 0x41d438
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00409575
jmp 0x41d492
mov al, bl
lea ecx, [ebp - 0x84]
and al, 1
mov byte [ebp - 0x88], al
lea eax, [ebp - 0x68]
push eax
call fcn.0040a1c3
lea eax, [ebp - 0x9c]
mov ecx, 0x4a0390
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0041d81d
mov ecx, dword [eax]
mov al, byte [ebp - 0x88]
mov byte [ecx + 0x14], al
lea eax, [ebp - 0x84]
push eax
add ecx, 0x18
call fcn.0040a1c3
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x68]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 8
lea ecx, [edi - 0x10]
call fcn.00409575
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x88]
call fcn.0040c51a
mov ecx, edi
call fcn.0040b056
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0040afd8
mov eax, dword [ebp - 0x60]
cmp dword [eax - 0xc], 0
jne 0x41d2db
mov ebx, dword [ebp - 0xa0]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x8c]
jb 0x41d2a1
mov byte [ebp - 4], 2
or edi, 0xffffffff
cmp dword [ebp - 0x70], edi
je 0x41d50e
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], edi
push ebx
call fcn.00454c63
pop ecx
jmp 0x41d521
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x64], 0x57
cmp dword [esi - 0xc], 0
je 0x41d557
push 9
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x41d557
cmp eax, 0x20
je 0x41d547
cmp eax, 5
jne 0x41d557
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x41d52a
mov edi, dword [ebp - 0x64]
xor eax, eax
mov byte [ebp - 4], al
lea ecx, [esi - 0x10]
call fcn.00409575
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.0041e015
mov eax, edi
call fcn.004504e6
ret