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

Disassembly:
mov eax, 0x2130
call fcn.00466d30
mov eax, dword [0x4bc4a0]
xor eax, esp
mov dword [esp + 0x212c], eax
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x213c]
push esi
push 0x1fff
push eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
mov byte [esp + 0x140], al
lea eax, [esp + 0x141]
xor bl, bl
push eax
mov byte [esp + 0x20], bl
call fcn.00466720
push 0x103
lea ecx, [esp + 0x45]
push 0
push ecx
mov byte [esp + 0x4c], bl
call fcn.00466720
mov edx, dword [0x4bdcf8]
add esp, 0x18
add edx, 0x28c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x2144]
push 0xa
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004688e8
mov edx, dword [0x4bdcf8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
add edx, 0x16e
push edx
push 0x104
lea eax, [esp + 0x140]
push eax
push 0x49c432
push str.file
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
je 0x41f3a1
mov edx, dword [0x4bdcf8]
add edx, 0x16e
push edx
push 0x104
lea eax, [esp + 0x3c]
push eax
push 0x49c432
push 0x49e20c
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
je 0x41f3a1
mov edx, dword [0x4bdcf8]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add edx, 0x16e
push edx
lea eax, [ebp + 0x210]
push eax
push 0x49e11c
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
je 0x41f3a1
mov edx, dword [0x4bdcf8]
mov ecx, dword [ebp + 0xa64]
add edx, 0x16e
push edx
mov edx, dword [ebp + 0xa60]
push 0xa
lea eax, [esp + 0x140]
push eax
push ecx
push edx
call fcn.004689c2
add esp, 0x10
push eax
push str.size
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, dword [0x4bdcf8]
add ecx, 0x16e
push ecx
lea edx, [ebp + 0xba8]
push edx
push 0x49e214
lea eax, [esp + 0x20]
push eax
call esi
mov ecx, dword [0x4bdcf8]
mov eax, dword [ebp + 0xa14]
add ecx, 0x16e
push ecx
push 0xa
lea edx, [esp + 0x140]
push edx
push eax
call fcn.004688e8
add esp, 0xc
push eax
push 0x49e210
lea ecx, [esp + 0x20]
push ecx
call esi
mov bl, 1
mov edx, dword [0x4bdcf8]
add edx, 0x28c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x41f3d2
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x212c]
xor ecx, esp
call fcn.00466555
add esp, 0x2130
ret
cmp dword [ebp + 0xa14], 0
push edi
mov byte [esp + 0x13c], 0
mov dword [esp + 0x10], 0
jle 0x41f641
mov edx, dword [ebp + 0xa18]
xor ebx, ebx
jmp 0x41f400
mov ecx, dword [ebx + edx + 4]
push 0xa
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004688e8
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f416
lea edi, [esp + 0x13c]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41f430
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f450
mov dx, word [0x49d0d4]
push 0xa
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 0xa18]
mov word [edi], dx
mov ecx, dword [eax + ebx + 0x14]
mov edx, dword [eax + ebx + 0x10]
push ecx
push edx
call fcn.004689c2
add esp, 0x10
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f483
lea edi, [esp + 0x13c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41f496
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f4b4
mov ax, word [0x49d0d4]
mov edx, dword [ebp + 0xa18]
push 0xa
lea ecx, [esp + 0x1c]
mov word [edi], ax
mov eax, dword [edx + ebx + 0x18]
push ecx
push eax
call fcn.004688e8
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f4e1
lea edi, [esp + 0x13c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41f4f4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f512
mov cx, word [0x49d0d4]
mov eax, dword [ebp + 0xa18]
push 0xa
lea edx, [esp + 0x1c]
mov word [edi], cx
mov ecx, dword [eax + ebx + 0x1c]
push edx
push ecx
call fcn.004688e8
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f540
lea edi, [esp + 0x13c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41f553
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f571
mov dx, word [0x49d0d4]
mov ecx, dword [ebp + 0xa18]
push 0x10
lea eax, [esp + 0x1c]
mov word [edi], dx
mov edx, dword [ecx + ebx + 0xc]
push eax
push edx
call fcn.004688e8
add esp, 0xc
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41f5a0
lea edi, [esp + 0x13c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41f5b3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41f5d1
mov ax, word [0x49d0d4]
mov edx, dword [ebp + 0xa18]
mov word [edi], ax
lea eax, [esp + 0x13c]
dec eax
cmp byte [ebx + edx + 0x20], 0
je 0x41f610
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41f5f7
mov ecx, dword [str.1_r_n]
mov dword [eax], ecx
mov cl, byte [0x49e2b4]
jmp 0x41f626
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41f610
mov ecx, dword [str.0_r_n]
mov dword [eax], ecx
mov cl, byte [0x49e2ac]
mov byte [eax + 4], cl
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
cmp eax, dword [ebp + 0xa14]
mov dword [esp + 0x10], eax
jl 0x41f400
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x1f9
mov esi, eax
push str...p2psrc_src_resume.cpp
lea eax, [esp + 0x40]
push eax
push esi
push str.__file_in:_0x_x:_s__file:__s:_u
call fcn.00416770
add esp, 0x14
cmp esi, 0xffffffff
je 0x41f709
lea eax, [esp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f690
push 0
sub eax, edx
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push edi
lea edx, [esp + 0x148]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x200
push str...p2psrc_src_resume.cpp
push esi
push str.__handle_cls:_0x_x__file:__s:_u
mov ebx, eax
call fcn.00416770
add esp, 0x10
test esi, esi
je 0x41f6d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41f6fe
cmp edi, dword [esp + 0x14]
jne 0x41f6fe
lea eax, [esp + 0x38]
lea edx, [ebp + 0x10c]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41f6f0
mov al, 1
jmp 0x41f70b
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x213c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466555
add esp, 0x2130
ret