Function at 0x414710
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45a9d1
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x477c1c]
xor eax, esp
mov dword [esp + 0x37c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477c1c]
xor eax, esp
push eax
lea eax, [esp + 0x394]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x291]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x298], bl
call fcn.00440d10
push 0x103
lea ecx, [esp + 0x199]
push ebx
push ecx
mov byte [esp + 0x1a0], bl
call fcn.00440d10
add esp, 0x18
lea edx, [esp + 0x188]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Pat.Ini
lea eax, [esp + 0x18c]
push eax
call ebp
lea ecx, [esp + 0x188]
push ecx
push ebx
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [esp + 0x3a4]
dec eax
mov dword [esp + 0x24], eax
cmp edi, 0xffffffff
je 0x414b54
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401cc0
mov dword [esp + 0x3b8], ebx
mov dword [esp + 0x3b8], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00410380
mov eax, dword [esp + 0x3a8]
cmp eax, 5
jne 0x414abd
push 0x103
lea edx, [esp + 0x89]
push ebx
push edx
mov byte [esp + 0x90], bl
call fcn.00440d10
imul edi, edi, 0x204
add esp, 0xc
add edi, esi
lea eax, [edi + 0x38]
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x88]
push eax
call ebp
push 0x45ecf4
lea ecx, [esp + 0x88]
push ecx
call ebp
add edi, 0x138
push edi
lea edx, [esp + 0x88]
push edx
call ebp
sub esp, 0x1c
mov ebp, esp
lea eax, [esp + 0xa0]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [ebp + 4], bl
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4148a0
sub eax, edi
push eax
lea eax, [esp + 0xa4]
push eax
mov ecx, ebp
call fcn.00401da0
mov dword [esp + 0x3b8], 1
or ebp, 0xffffffff
mov dword [esp + 0x3b8], ebp
mov ecx, dword [esi + 8]
call fcn.00413e90
mov edx, dword [esp + 0x24]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00402100
mov dword [esp + 0x3b8], 2
mov dword [esp + 0x3b8], ebp
mov ecx, dword [esi + 8]
call fcn.004133a0
mov ecx, dword [esi + 8]
call fcn.00412850
mov edi, 0xf
lea eax, [esp + 0x84]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414926
sub eax, esi
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.00401da0
mov dword [esp + 0x39c], 3
push str..hdr
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00409410
add esp, 0xc
mov byte [esp + 0x39c], 4
push ebp
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.00401cc0
mov byte [esp + 0x39c], 3
mov esi, 0x10
cmp dword [esp + 0x48], esi
jb 0x414997
mov eax, dword [esp + 0x34]
push eax
call fcn.00421b49
add esp, 4
lea eax, [esp + 0x84]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4149c0
sub eax, edx
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x70]
call fcn.00401da0
mov byte [esp + 0x39c], 5
push str..src
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00409410
add esp, 0xc
mov byte [esp + 0x39c], 6
push ebp
push ebx
push eax
lea ecx, [esp + 0x74]
call fcn.00401cc0
mov byte [esp + 0x39c], 5
cmp dword [esp + 0x48], esi
jb 0x414a29
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00421b49
add esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
cmp dword [esp + 0x80], esi
jae 0x414a46
lea eax, [esp + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x414a5d
lea eax, [esp + 0x50]
push eax
call edi
mov byte [esp + 0x39c], 3
cmp dword [esp + 0x80], esi
jb 0x414a7e
mov edx, dword [esp + 0x6c]
push edx
call fcn.00421b49
add esp, 4
mov edi, 0xf
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x39c], ebp
cmp dword [esp + 0x64], esi
jb 0x414aac
mov eax, dword [esp + 0x50]
push eax
call fcn.00421b49
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
jmp 0x4153bb
cmp eax, 1
jne 0x4153bb
imul edi, edi, 0x204
sub esp, 0x1c
add edi, esi
lea ebp, [edi + 0x138]
mov ecx, esp
mov dword [esp + 0x34], esp
push ebp
call fcn.00402100
mov dword [esp + 0x3b8], 7
sub esp, 0x1c
add edi, 0x38
mov ecx, esp
mov dword [esp + 0x5c], esp
push edi
call fcn.00402100
mov byte [esp + 0x3d4], 8
or edi, 0xffffffff
mov dword [esp + 0x3d4], edi
mov ecx, dword [esi + 8]
call fcn.00411560
cmp al, bl
je 0x414b47
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push ebp
call fcn.00402100
mov dword [esp + 0x3b8], 9
mov dword [esp + 0x3b8], edi
mov ecx, dword [esi + 8]
call fcn.00412510
mov ecx, dword [esi + 8]
call fcn.00412850
jmp 0x4153bb
cmp dword [esi + 0x848], ebx
mov dword [esp + 0x2c], ebx
jle 0x415378
jmp 0x414b76
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x1c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401cc0
mov dword [esp + 0x3b8], 0xa
mov dword [esp + 0x3b8], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00410380
mov ecx, dword [esp + 0x2c]
imul ecx, ecx, 0x204
mov eax, dword [ecx + esi + 0x238]
lea edi, [ecx + esi]
cmp eax, 1
jne 0x414cb6
lea ecx, [edi + 0x138]
sub esp, 0x1c
mov ebp, esp
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esp
mov byte [ebp + 4], bl
mov dword [esp + 0x30], edx
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414c00
sub eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, ebp
call fcn.00401da0
mov dword [esp + 0x3b8], 0xb
sub esp, 0x1c
lea ebp, [edi + 0x38]
mov edi, esp
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x4c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414c40
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401da0
mov byte [esp + 0x3d4], 0xc
mov dword [esp + 0x3d4], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00411560
cmp al, bl
je 0x415363
mov ebp, dword [esp + 0x1c]
sub esp, 0x1c
mov edi, esp
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [edi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414c94
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0xd
jmp 0x4151d6
cmp eax, 2
jne 0x414f93
sub esp, 0x1c
cmp dword [esp + 0x48], eax
jne 0x414e24
mov edi, esp
lea eax, [esi + 0x540]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414ce8
sub eax, ecx
push eax
lea eax, [esi + 0x540]
push eax
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0xe
sub esp, 0x1c
mov edi, esp
lea eax, [esi + 0x440]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x4c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414d30
sub eax, ecx
push eax
lea eax, [esi + 0x440]
push eax
mov ecx, edi
call fcn.00401da0
mov byte [esp + 0x3d4], 0xf
or edi, 0xffffffff
mov dword [esp + 0x3d4], edi
mov ecx, dword [esi + 8]
call fcn.00411ca0
cmp al, bl
je 0x415363
sub esp, 0x1c
lea eax, [esi + 0x540]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00402100
mov dword [esp + 0x3b8], 0x10
mov dword [esp + 0x3b8], edi
mov ecx, dword [esi + 8]
call fcn.00412510
push 0x103
lea eax, [esp + 0x89]
push ebx
push eax
mov byte [esp + 0x90], bl
call fcn.00440d10
add esp, 0xc
lea edi, [esi + 0x440]
push edi
lea ecx, [esp + 0x88]
push ecx
call ebp
push 0x45ecf4
lea edx, [esp + 0x88]
push edx
call ebp
lea eax, [esi + 0x540]
push eax
lea eax, [esp + 0x88]
push eax
call ebp
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call fcn.00402100
mov dword [esp + 0x3b8], 0x11
sub esp, 0x1c
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00402100
mov byte [esp + 0x3d4], 0x12
jmp 0x414f7b
lea eax, [edi + 0x138]
mov ecx, esp
lea edx, [eax + 1]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], esp
mov byte [ecx + 4], bl
mov dword [esp + 0x30], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414e48
sub eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.00401da0
mov dword [esp + 0x3b8], 0x13
lea ecx, [edi + 0x38]
sub esp, 0x1c
mov edi, esp
mov eax, ecx
lea edx, [eax + 1]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], esp
mov byte [edi + 4], bl
mov dword [esp + 0x50], edx
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x414e90
sub eax, dword [esp + 0x50]
push eax
push ecx
mov ecx, edi
call fcn.00401da0
mov byte [esp + 0x3d4], 0x14
or edi, 0xffffffff
mov dword [esp + 0x3d4], edi
mov ecx, dword [esi + 8]
call fcn.00411ca0
cmp al, bl
je 0x414eef
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00402100
mov dword [esp + 0x3b8], 0x15
mov dword [esp + 0x3b8], edi
mov ecx, dword [esi + 8]
call fcn.00412510
push 0x103
lea ecx, [esp + 0x89]
push ebx
push ecx
mov byte [esp + 0x90], bl
call fcn.00440d10
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
lea edx, [esp + 0x88]
push edx
call ebp
push 0x45ecf4
lea eax, [esp + 0x88]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x88]
push edx
call ebp
cmp dword [esp + 0x24], ebx
jg 0x415363
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402100
mov dword [esp + 0x3b8], 0x16
sub esp, 0x1c
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.00402100
mov byte [esp + 0x3d4], 0x17
mov dword [esp + 0x3d4], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.004104a0
jmp 0x415363
cmp eax, 3
jne 0x4151ee
push 0x103
lea ecx, [esp + 0x89]
push ebx
push ecx
mov byte [esp + 0x90], bl
call fcn.00440d10
add esp, 0xc
lea ebp, [edi + 0x38]
push ebp
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x45ecf4
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
add edi, 0x138
push edi
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
mov edi, esp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x3c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415014
mov edx, dword [esp + 0x38]
sub eax, ecx
push eax
push edx
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0x18
sub esp, 0x1c
mov edi, esp
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x60], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415050
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401da0
mov byte [esp + 0x3d4], 0x19
mov dword [esp + 0x3d4], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00411ca0
sub esp, 0x1c
mov edi, esp
lea eax, [esp + 0xa0]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x3c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4150a0
sub eax, ecx
push eax
lea eax, [esp + 0xa4]
push eax
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0x1a
mov dword [esp + 0x3b8], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00413e90
sub esp, 0x1c
mov edi, esp
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x3c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4150f2
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0x1b
mov dword [esp + 0x3b8], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.004133a0
mov ecx, dword [esi + 8]
call fcn.00412850
mov eax, dword [esp + 0x1c]
sub esp, 0x1c
mov edi, esp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x3c], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415147
sub eax, ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, edi
call fcn.00401da0
mov dword [esp + 0x3b8], 0x1c
sub esp, 0x1c
mov edi, esp
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x60], esp
mov byte [edi + 4], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x415183
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.00401da0
mov byte [esp + 0x3d4], 0x1d
mov dword [esp + 0x3d4], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00411560
cmp al, bl
je 0x415363
mov edx, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402100
mov dword [esp + 0x3b8], 0x1e
mov dword [esp + 0x3b8], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.00412510
jmp 0x415363
cmp eax, 4
je 0x415363
cmp eax, 5
jne 0x4152b4
push 0x103
lea eax, [esp + 0x89]
push ebx
push eax
mov byte [esp + 0x90], bl
call fcn.00440d10
add esp, 0xc
lea eax, [edi + 0x38]
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x1c], eax
call ebp
push 0x45ecf4
lea edx, [esp + 0x88]
push edx
call ebp
add edi, 0x138
push edi
lea eax, [esp + 0x88]
push eax
call ebp
sub esp, 0x1c
lea edx, [esp + 0xa0]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402100
mov dword [esp + 0x3b8], 0x1f
or edi, 0xffffffff
mov dword [esp + 0x3b8], edi
mov ecx, dword [esi + 8]
call fcn.00413e90
mov eax, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00402100
mov dword [esp + 0x3b8], 0x20
mov dword [esp + 0x3b8], edi
mov ecx, dword [esi + 8]
call fcn.004133a0
jmp 0x41535b
cmp eax, 6
jne 0x415363
push 0x103
lea ecx, [esp + 0x89]
push ebx
push ecx
mov byte [esp + 0x90], bl
call fcn.00440d10
add esp, 0xc
lea eax, [edi + 0x38]
push eax
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x1c], eax
call ebp
push 0x45ecf4
lea eax, [esp + 0x88]
push eax
call ebp
add edi, 0x138
push edi
lea ecx, [esp + 0x88]
push ecx
call ebp
mov edx, dword [esp + 0x14]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402100
mov dword [esp + 0x3b8], 0x21
sub esp, 0x1c
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.00402100
mov byte [esp + 0x3d4], 0x22
mov dword [esp + 0x3d4], 0xffffffff
mov ecx, dword [esi + 8]
call fcn.004104a0
mov ecx, dword [esi + 8]
call fcn.00412850
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esi + 0x848]
mov dword [esp + 0x2c], eax
jl 0x414b70
mov eax, dword [esp + 0x24]
cmp eax, ebx
jg 0x415385
mov eax, 0xa
push eax
lea ecx, [esp + 0x290]
push 0x45fb78
push ecx
call fcn.004410b5
add esp, 0xc
lea edx, [esp + 0x188]
push edx
lea eax, [esp + 0x290]
push eax
push str.Count
push str.Version
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov al, 1
mov ecx, dword [esp + 0x394]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.0044014d
add esp, 0x38c
ret 8