Function at 0x40a190
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5decdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x508
push esi
mov dword [ebp - 0x500], ecx
mov ecx, dword [ebp - 0x500]
add ecx, 0xc0
call fcn.0040f030
test eax, eax
je 0x40a1cf
jmp 0x40aa64
mov eax, dword [ebp - 0x500]
mov dword [eax + 0x70c], 1
mov ecx, dword [ebp - 0x500]
add ecx, 0xc0
call fcn.0040f050
mov dword [ebp - 0x3ec], eax
cmp dword [ebp - 0x3ec], 2
jne 0x40a211
push 1
mov ecx, dword [ebp - 0x500]
call fcn.00409f6d
jmp 0x40aa64
cmp dword [ebp - 0x3ec], 0
je 0x40a21f
jmp 0x40aa64
cmp dword [0x67554c], 0
jle 0x40a24e
mov ecx, dword [ebp - 0x500]
cmp dword [ecx + 0x1c], 0
je 0x40a24e
mov edx, dword [ebp - 0x500]
cmp dword [edx + 0x8a4], 0
jne 0x40a24e
mov ecx, dword [ebp - 0x500]
call fcn.0046d490
mov ecx, dword [ebp - 0x500]
call fcn.00482d10
mov ecx, dword [ebp - 0x500]
call fcn.00483020
mov ecx, dword [ebp - 0x500]
call fcn.0042ef50
lea ecx, [ebp - 0x3e4]
call fcn.004918b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004918b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.004918b0
mov byte [ebp - 4], 2
push 0x674eec
lea ecx, [ebp - 0x3c]
call fcn.00491c20
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0x2710
je 0x40a2c7
cmp dword [ebp - 0x54], 0x2af8
jne 0x40a2d9
mov edx, dword [ebp - 0x500]
mov dword [edx + 0xd8], 1
jmp 0x40a322
mov ecx, dword [ebp - 0x500]
add ecx, 0xc0
call fcn.00467110
test eax, eax
jne 0x40a30c
cmp dword [ebp - 0x54], 0
je 0x40a2fa
cmp dword [ebp - 0x54], 2
jne 0x40a30a
mov eax, dword [ebp - 0x500]
mov dword [eax + 0xd8], 1
jmp 0x40a322
cmp dword [ebp - 0x54], 2
jne 0x40a322
mov ecx, dword [ebp - 0x500]
mov dword [ecx + 0xd8], 0
lea ecx, [ebp - 0x20]
call fcn.0040e570
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3d0]
call fcn.0040e5e0
mov byte [ebp - 4], 4
push 0
push 0
push 0
mov edx, dword [ebp - 0x500]
add edx, 0x830
push edx
mov eax, dword [ebp - 0x500]
add eax, 0x81c
push eax
mov ecx, dword [ebp - 0x500]
add ecx, 0x808
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3d0]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
mov ecx, dword [ebp - 0x500]
call fcn.004187e0
test eax, eax
je 0x40a3d0
push 0
push 0
push 0xc
push 0x65b84c
push 0x800
push 0x4f5
push 0x65b354
push 0
lea edx, [ebp - 0x3d0]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x500]
call fcn.00424870
test eax, eax
je 0x40a3d0
mov dword [ebp - 0x504], 1
jmp 0x40a3da
mov dword [ebp - 0x504], 0
mov edx, dword [ebp - 0x504]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x500]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0xd8], ecx
cmp dword [ebp - 0x64], 0
jne 0x40a442
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3d0]
call fcn.00401f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005bc421
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00409de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e4]
call fcn.00409de0
jmp 0x40aa64
mov ecx, 0x6761cc
call fcn.0040e510
cmp eax, 8
jle 0x40a4ac
push 8
mov ecx, 0x6761cc
call fcn.0040e530
mov ecx, eax
call fcn.0040e5d0
push eax
call fcn.00492700
add esp, 4
test eax, eax
jne 0x40a4ac
push 8
mov ecx, 0x6761cc
call fcn.0040e530
push eax
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.005bc55a
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40a545
lea edx, [ebp - 0x4f0]
push edx
push 0
push 0x65c8f4
mov ecx, dword [ebp - 0x500]
add ecx, 0x938
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40a52d
push 0x65c8f8
call fcn.004ff630
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3d0]
call fcn.00401f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005bc421
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00409de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e4]
call fcn.00409de0
jmp 0x40aa64
lea eax, [ebp - 0x4f0]
push eax
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.005bc5aa
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
push ecx
lea ecx, [ebp - 0x50]
call fcn.00491fc0
test eax, eax
jne 0x40a60f
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.0040e5d0
push eax
push 0x65c90c
lea edx, [ebp - 0x4fc]
push edx
call fcn.00503c60
add esp, 0xc
mov dword [ebp - 0x508], eax
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x50c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x50c]
call fcn.0040e5d0
push eax
call fcn.004ff630
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4fc]
call fcn.005bc421
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3d0]
call fcn.00401f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005bc421
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00409de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e4]
call fcn.00409de0
jmp 0x40aa64
mov ecx, dword [ebp - 0x500]
add ecx, 0x1f4
call fcn.0040e590
test eax, eax
jne 0x40a658
push 0x65c92c
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.005bc7fd
mov ecx, dword [ebp - 0x500]
add ecx, 0x1f4
push ecx
mov ecx, dword [ebp - 0x500]
add ecx, 0x524
call fcn.005bc839
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edx, 1
test edx, edx
je 0x40a813
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x500]
add ecx, 0x324
call fcn.004f48d0
test eax, eax
jne 0x40a69c
jmp 0x40a813
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x500]
add ecx, 0x324
call fcn.004f4910
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0xbc
call fcn.0040f9f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x60]
add ecx, 0xbc
call fcn.0040fa20
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x28]
jae 0x40a805
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x50d], cl
mov dl, byte [ebp - 0x50d]
push edx
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
call fcn.004ee1a0
add esp, 4
test eax, eax
jne 0x40a710
jmp 0x40a6db
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 6]
and eax, 4
test eax, eax
je 0x40a7f0
mov esi, dword [ebp - 0x10]
sub esi, 1
mov ecx, dword [ebp - 0x60]
add ecx, 0xbc
call fcn.0040f9f0
sub esi, eax
mov dword [ebp - 0x3e8], esi
mov ecx, dword [ebp - 0x3e8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x500]
call fcn.00477920
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40a7d6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x3e8]
je 0x40a7d4
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 6]
and edx, 0x784
mov word [ebp - 0x4f4], dx
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 6]
and cx, 0xf87b
mov edx, dword [ebp - 0x14]
mov word [edx + 6], cx
mov ecx, dword [ebp - 0x60]
add ecx, 0xbc
call fcn.0040f9f0
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx + 7]
mov dword [ebp - 0x514], edx
mov eax, dword [ebp - 0x514]
mov cx, word [eax]
or cx, word [ebp - 0x4f4]
mov edx, dword [ebp - 0x514]
mov word [edx], cx
jmp 0x40a7f0
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 6]
and cx, 0xf87b
mov edx, dword [ebp - 0x14]
mov word [edx + 6], cx
mov ecx, dword [ebp - 0x10]
call fcn.004eb460
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x40a6db
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
jmp 0x40a66d
cmp dword [ebp - 0x18], 0
jne 0x40a81f
cmp dword [ebp - 0x5c], 0
je 0x40a88a
lea ecx, [ebp - 0x4f8]
call fcn.0040e570
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
je 0x40a844
push 0x65c930
lea ecx, [ebp - 0x4f8]
call fcn.005bc5aa
cmp dword [ebp - 0x5c], 0
je 0x40a85a
push 0x65c978
lea ecx, [ebp - 0x4f8]
call fcn.005bc7fd
lea ecx, [ebp - 0x4f8]
call fcn.0040e5d0
push eax
call fcn.004ff5c0
add esp, 4
push 0
mov ecx, dword [ebp - 0x500]
call fcn.00473da0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4f8]
call fcn.005bc421
push 1
mov ecx, dword [ebp - 0x500]
add ecx, 0xc0
call fcn.0040e4f0
push 0
push 0
push 0x36a
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax + 0x94c]
call fcn.0040f070
push 1
push 0x65c9b4
mov ecx, dword [ebp - 0x500]
call fcn.00473ec0
push 1
mov ecx, dword [ebp - 0x500]
mov ecx, dword [ecx + 0x94c]
mov edx, dword [ebp - 0x500]
mov eax, dword [edx + 0x94c]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [ebp - 0x500]
mov ecx, dword [eax + 0x94c]
add ecx, 0x9a0
call fcn.0040f9a0
mov ecx, dword [ebp - 0x500]
mov ecx, dword [ecx + 0x94c]
add ecx, 0x8b4
call fcn.004b0c40
mov ecx, dword [ebp - 0x500]
add ecx, 0x71c
call fcn.0040fb30
mov ecx, dword [ebp - 0x500]
add ecx, 0x730
call fcn.0040fb30
mov ecx, dword [ebp - 0x500]
add ecx, 0x744
call fcn.0040fb30
mov edx, dword [ebp - 0x500]
mov eax, dword [edx + 0x94c]
cmp dword [eax + 0x700], 0
je 0x40a97a
push 0
mov ecx, dword [ebp - 0x500]
mov ecx, dword [ecx + 0x94c]
add ecx, 0x6e4
call fcn.0040f3a0
lea edx, [ebp - 0x3e4]
push edx
mov ecx, dword [ebp - 0x500]
add ecx, 0x528
call fcn.00491d50
mov eax, dword [ebp - 0x500]
mov dword [eax + 0x804], 0
cmp dword [ebp + 8], 0
je 0x40aa0b
push 0
mov ecx, dword [ebp - 0x500]
add ecx, 0x6a8
call fcn.0040fb90
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x500]
add ecx, 0x6bc
call fcn.0040fb90
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x500]
add ecx, 0x6d0
call fcn.0040fb90
push 0
mov ecx, dword [ebp - 0x500]
add ecx, 0x6e4
call fcn.0040fb90
push 0
mov ecx, dword [ebp - 0x500]
add ecx, 0x6f8
call fcn.0040fb90
push 0
push 0
push 0
push 0
push 0
push 0x42f020
call fcn.005c1174
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3d0]
call fcn.00401f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.005bc421
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00409de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00409de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e4]
call fcn.00409de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8