Function at 0x407240
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x450ec7
push eax
mov eax, 0x2f5f0
mov dword fs:[0], esp
call fcn.00431df0
mov al, byte [0x471b14]
push ebx
push ebp
push esi
mov dword [esp + 0x30], ecx
push edi
mov byte [esp + 0x200], al
mov ecx, 0x3eff
xor eax, eax
lea edi, [esp + 0x201]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2f618]
xor ebp, ebp
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ecx + 4]
cmp eax, ebp
jne 0x40729b
mov eax, 0x45561c
mov edx, dword [esp + 0x2f614]
mov ecx, dword [edx + 4]
cmp ecx, ebp
jne 0x4072ae
mov ecx, 0x45561c
push eax
lea eax, [esp + 0x204]
push 0xfbff
push eax
push 0x481894
push ebp
push ecx
call fcn.0041f7a7
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x407994
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x28], cl
push ebp
lea ecx, [esp + 0x2c]
lea esi, [esp + 0x208]
call fcn.00405580
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
lea edx, [esp + 0x200]
push 0x471b14
push edx
mov dword [esp + 0x2f610], ebp
call fcn.00431ced
add esp, 8
test eax, eax
je 0x4073c4
mov bl, byte [esp + 0x13]
cmp esi, ebp
je 0x4073c4
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4073ae
cmp byte [esi], 0x3b
je 0x407396
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], bl
call fcn.004017f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00405170
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x2f614], 1
call fcn.00405490
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f60c], 0
call fcn.004017f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
call fcn.00431c54
add esp, 8
inc eax
mov esi, eax
push 0x471b14
push esi
call fcn.00431ced
add esp, 8
test eax, eax
jne 0x407323
mov al, byte [0x471b14]
mov ecx, 0x3eff
mov byte [esp + 0xfe00], al
xor eax, eax
lea edi, [esp + 0xfe01]
push ebp
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x17]
push ebp
stosw word es:[edi], ax
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
stosb byte es:[edi], al
call fcn.00405580
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x2f614]
mov byte [esp + 0x2f608], 2
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x407419
mov eax, 0x45561c
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push 0x466e88
push edx
push eax
call fcn.00407b60
test eax, eax
jne 0x4074db
mov eax, dword [esi + 4]
cmp eax, ebp
jne 0x407441
mov eax, 0x45561c
push eax
push str.Error_expanding_section_s_n
push 0x46e270
call fcn.00431ee9
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f608], 0
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404bc0
mov edx, dword [eax]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004054f0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00447dfa
mov eax, dword [esp + 0x2c]
add esp, 4
lea edx, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2f610], 0xffffffff
call fcn.00404bc0
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004054f0
mov edx, dword [esp + 0x28]
push edx
call fcn.00447dfa
add esp, 4
mov eax, 0x57
jmp 0x407994
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
cmp eax, esi
mov dword [esp + 0x30], eax
je 0x407900
mov edx, dword [esp + 0x28]
mov bl, byte [0x471b14]
mov ecx, 0x3eff
xor eax, eax
lea edi, [esp + 0x1fa01]
mov byte [esp + 0x1fa00], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [edx]
cmp eax, edx
mov dword [esp + 0x14], eax
je 0x4078ec
mov eax, dword [esp + 0x2f618]
mov edx, 0x45561c
mov eax, dword [eax + 4]
test eax, eax
je 0x407548
mov edx, eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jne 0x407558
mov ecx, 0x45561c
mov eax, dword [esp + 0x2f614]
mov eax, dword [eax + 4]
test eax, eax
jne 0x40756b
mov eax, 0x45561c
push edx
lea edx, [esp + 0xfe04]
push 0xfbff
push edx
push 0x471b14
push ecx
push eax
call fcn.0041f7a7
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
call ebp
mov esi, eax
test esi, esi
jne 0x4079af
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4075a6
mov eax, 0x45561c
push str.include
push eax
call fcn.00431813
add esp, 8
test eax, eax
jne 0x407790
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.004017f0
mov edi, 0x466e60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x466e60
lea ecx, [esp + 0x50]
call fcn.00405170
lea edi, [esp + 0xfe00]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x2f608], 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xfe04]
push ecx
lea ecx, [esp + 0x50]
call fcn.00404eb0
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..tmp
lea ecx, [esp + 0x50]
call fcn.00404eb0
mov eax, dword [esp + 0x4c]
mov ecx, 0x45561c
test eax, eax
je 0x407645
mov ecx, eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
test eax, eax
jne 0x407655
mov eax, 0x45561c
push ecx
push eax
lea eax, [esp + 0x104]
push str.echo___s___s
push eax
call fcn.0043110a
lea ecx, [esp + 0x10c]
push ecx
call fcn.00431e47
mov eax, dword [esp + 0x60]
add esp, 0x14
test eax, eax
jne 0x407686
mov eax, 0x45561c
lea edx, [esp + 0xfe00]
push eax
push edx
lea eax, [esp + 0x104]
push str.type__s___s
push eax
call fcn.0043110a
lea ecx, [esp + 0x10c]
push ecx
call fcn.00431e47
add esp, 0x14
lea edx, [esp + 0xfe00]
push edx
push str.Merging_value_included_file__s_n
push 0x20
push 0x471d20
call fcn.00401200
mov esi, dword [esp + 0x5c]
add esp, 0x10
test esi, esi
jne 0x4076da
mov esi, 0x45561c
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
call fcn.004017f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call fcn.00401860
test al, al
je 0x407729
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
call fcn.00401840
mov ecx, dword [esp + 0x2f610]
lea eax, [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x2f610], 4
call fcn.00406ea0
push 1
lea ecx, [esp + 0x3c]
mov esi, eax
mov byte [esp + 0x2f60c], 3
call fcn.004017f0
test esi, esi
jne 0x407a1f
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x407771
mov eax, 0x45561c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2f60c], 2
call fcn.004017f0
jmp 0x4078cc
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40779c
mov eax, 0x45561c
push 0x9f
lea edx, [esp + 0x60]
push eax
push edx
call fcn.004311ad
lea eax, [esp + 0x68]
push eax
call fcn.004315f5
add esp, 0x10
test eax, eax
je 0x40786d
lea ecx, [esp + 0x5c]
push ecx
call fcn.004315f5
add esp, 4
cmp eax, 0x190
jge 0x40786d
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 8]
test eax, eax
je 0x40786d
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2f610]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4077ff
mov eax, 0x45561c
push edi
lea ecx, [esp + 0x1fa04]
push 0xfbff
push ecx
lea edx, [esp + 0x68]
push 0x471b14
push edx
push eax
call fcn.0041f7a7
add esp, 0x18
test eax, eax
je 0x407878
lea eax, [esp + 0x5c]
push eax
call fcn.004315f5
add esp, 4
inc eax
lea ecx, [esp + 0x5c]
push eax
push 0x4663e4
push ecx
call fcn.0043110a
mov eax, dword [ebx + 0xc]
add esp, 0xc
test eax, eax
jne 0x407851
mov eax, 0x45561c
lea edx, [esp + 0x5c]
push edx
push eax
push str._t_trenumerated_key_s__to_s_n
push 0x20
push 0x471d20
call fcn.00401200
add esp, 0x14
jmp 0x4077f3
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2f610]
lea eax, [esp + 0xfe00]
lea ecx, [esp + 0x5c]
push eax
push ecx
push str._t_tmerging_key_s__value_s_n
push 0x20
push 0x471d20
call fcn.00401200
mov eax, dword [esi + 0xc]
add esp, 0x14
test eax, eax
jne 0x4078a5
mov eax, 0x45561c
lea edx, [esp + 0xfe00]
push edi
lea ecx, [esp + 0x60]
push edx
push ecx
push eax
call fcn.0041f7cf
add esp, 0x10
test eax, eax
je 0x407aa2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
cmp eax, edx
mov dword [esp + 0x14], eax
jne 0x407533
mov esi, dword [esp + 0x1c]
mov bl, byte [0x471b14]
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp eax, esi
mov dword [esp + 0x30], eax
jne 0x4074f7
xor ebp, ebp
mov ecx, dword [esp + 0x2c]
push ecx
push str._t_tMerged__d_keys_n
push 0x20
push 0x471d20
call fcn.00401200
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov byte [esp + 0x2f608], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x407948
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004056e0
cmp esi, edi
jne 0x40792d
mov eax, dword [esp + 0x1c]
push eax
call fcn.00447dfa
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
add esp, 4
mov esi, dword [edi]
mov dword [esp + 0x2f608], 0xffffffff
cmp esi, edi
je 0x407985
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
call fcn.004056e0
cmp esi, edi
jne 0x40796e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00447dfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2f600]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f5fc
ret 0xc
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2f608], 0
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004054f0
mov edx, dword [esp + 0x1c]
push edx
call fcn.00447dfa
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
push eax
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x2f614], 0xffffffff
call fcn.004054f0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00447dfa
add esp, 4
mov eax, esi
jmp 0x407994
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2f60c], 2
call fcn.004017f0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push eax
mov byte [esp + 0x2f60c], 0
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004054f0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00447dfa
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2f614], 0xffffffff
call fcn.004054f0
mov edx, dword [esp + 0x28]
push edx
call fcn.00447dfa
add esp, 4
mov eax, esi
jmp 0x407994
lea eax, [esp + 0xfe00]
lea ecx, [esp + 0x5c]
push eax
push ecx
push str.ICEWritePrivateProfileString_failed_on_key_s__value_s_n
push 1
push 0x471d20
call fcn.00401200
add esp, 0x14
call ebp
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x2f608], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x407af6
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004056e0
cmp esi, edi
jne 0x407adb
mov eax, dword [esp + 0x1c]
push eax
call fcn.00447dfa
mov esi, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov eax, dword [esi]
add esp, 4
cmp eax, esi
mov dword [esp + 0x2f608], 0xffffffff
mov dword [esp + 0x14], eax
je 0x407b48
lea eax, [esp + 0x34]
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00404bd0
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.004056e0
cmp dword [esp + 0x14], esi
jne 0x407b22
mov eax, dword [esp + 0x28]
push eax
call fcn.00447dfa
add esp, 4
mov eax, ebx
jmp 0x407994