Function at 0x4136df
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
push ebx
push esi
mov esi, ecx
push edi
push 0x40
lea eax, [ebp - 0x24c]
lea edi, [esi + 0x1e8]
mov dword [ebp - 0x18], esi
push edi
push eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x20c], esi
call fcn.00420c30
add esp, 0xc
add esi, 0x230
push str.C:CodeBasesisdevSrcRuntimeInstallScriptSetupNewSetupDLL.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push edi
call fcn.0042265c
pop ecx
cmp eax, ebx
pop ecx
jne 0x413ee4
lea ecx, [ebp - 0x180]
call fcn.00407a28
push ebx
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.0040710b
lea ecx, [ebp - 0x180]
call fcn.00407a5f
lea eax, [ebp - 0x1d0]
push 0x26
push eax
lea ecx, [ebp - 0x180]
call fcn.0040817b
push ebx
lea ecx, [ebp - 0x180]
push dword [ebp - 0x1c4]
call fcn.0040ce3c
push dword [ebp - 0x1c8]
call fcn.00420be5
pop ecx
mov esi, eax
push dword [ebp - 0x1c8]
cmp esi, ebx
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x74], esi
push esi
setne byte [ebp - 0x78]
call fcn.0040817b
mov eax, dword [esi + 2]
cmp eax, ebx
je 0x4137b8
add eax, esi
mov dword [esi + 2], eax
and byte [ebp - 0x3a0], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x39f]
push 0
rep stosd dword es:[edi], eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], ebx
stosw word es:[edi], ax
mov ebx, 0x44655c
lea ecx, [ebp - 0x54]
stosb byte es:[edi], al
mov dword [ebp - 0x48], 0x446564
mov dword [ebp - 0x40], ebx
call fcn.00406d6c
mov edi, 0x446558
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], edi
call fcn.00413ee8
lea eax, [ebp - 0x29c]
lea ecx, [ebp - 0x54]
push eax
call fcn.0040723b
push 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], 0x446564
mov dword [ebp - 0x24], ebx
call fcn.00406d6c
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x38], edi
call fcn.0040252a
lea eax, [ebp - 0x274]
lea ecx, [ebp - 0x54]
push eax
call fcn.004071b2
push eax
lea ecx, [ebp - 0x54]
call fcn.0040266e
lea ecx, [ebp - 0x274]
call fcn.0040252a
push dword [0x44656c]
lea ecx, [ebp - 0x1ec]
push 1
push str.1234567890
call fcn.00406d00
push eax
lea ecx, [ebp - 0x38]
call fcn.004089d2
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 0x14], eax
call fcn.0040252a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ecx + eax*2]
push eax
call fcn.00421351
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x38]
push 0
push eax
call fcn.004026a6
push eax
lea ecx, [ebp - 0x38]
call fcn.0040266e
lea ecx, [ebp - 0x208]
call fcn.0040252a
cmp word [esi], 1
lea ecx, [ebp - 0x1a8]
sete byte [ebp - 1]
call fcn.00407a28
and dword [ebp - 8], 0
cmp word [esi], 0
jbe 0x413b93
mov eax, dword [ebp - 8]
mov ecx, eax
shl ecx, 2
mov eax, ecx
add eax, dword [esi + 2]
mov edx, dword [eax]
test edx, edx
je 0x4138f9
add edx, esi
mov dword [eax], edx
mov eax, dword [esi + 2]
mov eax, dword [ecx + eax]
inc eax
inc eax
mov edx, dword [eax]
test edx, edx
je 0x41390b
add edx, esi
mov dword [eax], edx
mov eax, dword [esi + 2]
mov eax, dword [ecx + eax]
add eax, 6
mov edx, dword [eax]
test edx, edx
je 0x41391e
add edx, esi
mov dword [eax], edx
mov eax, dword [esi + 2]
and dword [ebp - 0xc], 0
mov eax, dword [ecx + eax]
cmp word [eax], 0
jbe 0x413b84
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, eax
mov eax, dword [esi + 2]
shl ecx, 2
shl edx, 2
mov eax, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [eax + 2]
add eax, edx
mov edx, dword [eax]
test edx, edx
je 0x413958
add edx, esi
mov dword [eax], edx
mov eax, dword [esi + 2]
mov eax, dword [ecx + eax]
mov eax, dword [eax + 6]
add eax, dword [ebp - 0x10]
mov edx, dword [eax]
test edx, edx
je 0x41396e
add edx, esi
mov dword [eax], edx
mov eax, dword [esi + 2]
push 0
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 2]
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0xcc]
push eax
mov dword [ebp - 0xc0], 0x446564
mov dword [ebp - 0xb8], ebx
call fcn.00403177
mov eax, dword [ebp - 8]
mov dword [ebp - 0xcc], edi
mov ecx, dword [esi + 2]
push 0
shl eax, 2
mov eax, dword [eax + ecx]
mov ecx, dword [eax + 6]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov eax, dword [ecx + eax]
lea ecx, [ebp - 0xe8]
push eax
mov dword [ebp - 0xdc], 0x446564
mov dword [ebp - 0xd4], ebx
call fcn.00403177
cmp byte [ebp - 1], 0
mov dword [ebp - 0xe8], edi
je 0x413a07
lea ecx, [ebp - 0xcc]
call fcn.00402db3
push str.layout.bin
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413b53
push 0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x130], 0x446564
mov dword [ebp - 0x128], ebx
call fcn.00402457
xor eax, eax
mov dword [ebp - 0x13c], edi
cmp dword [ebp - 0xd8], eax
je 0x413a40
push dword [ebp - 0xd8]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x413a6a
lea eax, [ebp - 0xe8]
lea ecx, [ebp - 0x13c]
push eax
call fcn.0040266e
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x13c]
push eax
call fcn.0040787c
jmp 0x413a7c
lea eax, [ebp - 0xcc]
lea ecx, [ebp - 0x13c]
push eax
call fcn.0040266e
push 0
lea ecx, [ebp - 0x120]
push dword [ebp + 0x10]
mov dword [ebp - 0x114], 0x446564
mov dword [ebp - 0x10c], ebx
call fcn.00406d6c
cmp byte [ebp - 1], 0
mov dword [ebp - 0x120], edi
jne 0x413af2
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x120]
push eax
call fcn.0040266e
lea ecx, [ebp - 0x38]
call fcn.00402db3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push eax
lea eax, [ebp - 0x3a0]
push dword [ebp - 0x34]
push str._s_i
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x120]
push eax
call fcn.00403410
lea eax, [ebp - 0x13c]
lea ecx, [ebp - 0x120]
push eax
call fcn.0040787c
push 0
lea eax, [ebp - 0x120]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.0040710b
lea ecx, [ebp - 0x1a8]
call fcn.00407a5f
lea ecx, [ebp - 0x1a8]
call fcn.004157e7
add dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1a8]
call fcn.00407f58
lea ecx, [ebp - 0x120]
call fcn.0040252a
lea ecx, [ebp - 0x13c]
call fcn.0040252a
lea ecx, [ebp - 0xe8]
call fcn.0040252a
lea ecx, [ebp - 0xcc]
call fcn.0040252a
mov eax, dword [ebp - 8]
mov ecx, dword [esi + 2]
inc dword [ebp - 0xc]
shl eax, 2
mov eax, dword [eax + ecx]
movzx eax, word [eax]
cmp dword [ebp - 0xc], eax
jl 0x413932
movzx eax, word [esi]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x4138e2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 3
mov dword [ecx + 0x348], eax
and dword [ecx + 0x34c], 0
call fcn.004095dc
and dword [ebp - 8], 0
cmp word [esi], 0
jbe 0x413e38
mov eax, dword [esi + 2]
mov ecx, dword [ebp - 8]
and dword [ebp - 0xc], 0
mov eax, dword [eax + ecx*4]
cmp word [eax], 0
jbe 0x413e29
mov eax, dword [esi + 2]
mov ecx, dword [ebp - 8]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 2]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x94]
push eax
mov dword [ebp - 0x88], 0x446564
mov dword [ebp - 0x80], ebx
call fcn.00403177
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x94], edi
mov eax, dword [esi + 2]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + 6]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 0x64], 0x446564
mov dword [ebp - 0x5c], ebx
call fcn.00403177
cmp byte [ebp - 1], 0
mov dword [ebp - 0x70], edi
je 0x413c59
lea ecx, [ebp - 0x94]
call fcn.00402db3
push str.layout.bin
push dword [ebp - 0x90]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413dfe
push 0
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa4], 0x446564
mov dword [ebp - 0x9c], ebx
call fcn.00402457
xor eax, eax
mov dword [ebp - 0xb0], edi
cmp dword [ebp - 0x60], eax
je 0x413c8c
push dword [ebp - 0x60]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x413cb3
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040266e
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040787c
jmp 0x413cc5
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0xb0]
push eax
call fcn.0040266e
push 0
lea ecx, [ebp - 0x104]
push dword [ebp + 0x10]
mov dword [ebp - 0xf8], 0x446564
mov dword [ebp - 0xf0], ebx
call fcn.00406d6c
push 0
lea ecx, [ebp - 0x158]
push dword [ebp + 0xc]
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x14c], 0x446564
mov dword [ebp - 0x144], ebx
call fcn.00406d6c
cmp byte [ebp - 1], 0
mov dword [ebp - 0x158], edi
jne 0x413d73
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x104]
push eax
call fcn.0040266e
lea ecx, [ebp - 0x38]
call fcn.00402db3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push eax
lea eax, [ebp - 0x3a0]
push dword [ebp - 0x34]
push str._s_i
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x104]
push eax
call fcn.00403410
lea eax, [ebp - 0x3a0]
lea ecx, [ebp - 0x158]
push eax
call fcn.00403410
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x104]
push eax
call fcn.0040787c
lea eax, [ebp - 0xb0]
lea ecx, [ebp - 0x158]
push eax
call fcn.0040787c
xor eax, eax
cmp dword [ebp - 0x60], eax
je 0x413da7
push dword [ebp - 0x60]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x413db4
cmp byte [ebp - 1], al
je 0x413db4
xor al, al
jmp 0x413db6
mov al, 1
mov ecx, dword [ebp - 0x18]
push 0x794
push eax
lea eax, [ebp - 0x158]
push 1
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00413232
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0041220c
lea ecx, [ebp - 0x158]
call fcn.0040252a
lea ecx, [ebp - 0x104]
call fcn.0040252a
lea ecx, [ebp - 0xb0]
call fcn.0040252a
lea ecx, [ebp - 0x70]
call fcn.0040252a
lea ecx, [ebp - 0x94]
call fcn.0040252a
mov eax, dword [esi + 2]
mov ecx, dword [ebp - 8]
inc dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
movzx eax, word [eax]
cmp dword [ebp - 0xc], eax
jl 0x413bd2
movzx eax, word [esi]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x413bbb
mov eax, dword [ebp - 0x18]
push dword [ebp + 0xc]
lea ecx, [eax + 0x6d4]
call fcn.0040266e
mov edi, 0x4465c8
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], edi
call fcn.00407f58
lea ecx, [ebp - 0x1a0]
call fcn.0040252a
lea ecx, [ebp - 0x38]
call fcn.0040252a
lea ecx, [ebp - 0x54]
call fcn.0040252a
cmp byte [ebp - 0x78], 0
je 0x413e87
push esi
call fcn.00420754
pop ecx
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x180], edi
call fcn.00407f58
lea ecx, [ebp - 0x178]
call fcn.0040252a
cmp byte [ebp - 1], 0
jne 0x413ebc
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
lea eax, [ebp - 0x24c]
push 0x40
push eax
mov eax, dword [ebp - 0x20c]
add eax, 0x1e8
push eax
call fcn.00420c30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, eax
jmp 0x413ebe