Function at 0x49b520
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x49b528
push ebx
push esi
push edi
mov eax, 0x49b290
call fcn.00406838
xor eax, eax
push ebp
push 0x49be4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402994
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00408604
mov edx, dword [ebp - 0x10]
mov eax, 0x4a1254
call fcn.00403c04
mov eax, dword [0x49f4dc]
mov dword [0x4a125c], eax
mov dword [0x4a1480], 0x40
mov eax, 0x47b1b4
mov dword [0x4a1484], eax
mov eax, dword [0x4a125c]
mov dword [0x4a1490], eax
mov eax, 0x49be5c
mov dword [0x4a14a4], eax
push 0x4a1480
call sub.user32.dll_RegisterClassA
mov eax, dword [0x4a1254]
mov edx, 0x49be78
call fcn.00403f40
jne 0x49b765
mov ecx, 0x49be8c
mov dl, 1
mov eax, dword [0x45a6fc]
call fcn.0045aea0
mov dword [0x49eaa0], eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402994
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408d74
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00408d74
mov edx, dword [ebp - 0x18]
mov eax, 0x4a1250
call fcn.00403c04
lea edx, [ebp - 0x24]
mov eax, dword [0x4a1250]
call fcn.00408640
mov edx, dword [ebp - 0x24]
mov eax, 0x49beb0
call fcn.0040411c
mov ebx, eax
dec ebx
push 0x4a14ac
mov ecx, ebx
mov edx, 1
mov eax, dword [0x4a1250]
call fcn.00404038
push 0x49bec0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x49bf00
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x28]
mov cx, word [0x49bf20]
mov dl, 2
call fcn.0044a258
mov dword [0x4a14b0], eax
xor eax, eax
push ebp
push 0x49b751
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49bf2c
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x49bf4c
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4a14b0]
call fcn.00434f00
push 0x49bf74
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x49bf84
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x30]
push eax
mov edx, 0x49bfa8
mov eax, dword [0x4a14b0]
call fcn.004148dc
mov edx, dword [0x4207b4]
call fcn.0040309c
pop edx
call fcn.00434f00
push 0x49bfb4
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x49bfc0
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x34]
push eax
mov edx, 0x49bfe4
mov eax, dword [0x4a14b0]
call fcn.004148dc
mov edx, dword [0x4207b4]
call fcn.0040309c
pop edx
call fcn.00434f00
mov eax, dword [0x4a14b0]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov dword [0x4a14a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b758
mov eax, dword [0x4a14b0]
call fcn.00402f0c
ret
mov eax, dword [0x4a1254]
mov edx, 0x49be78
call fcn.00403f40
jne 0x49b7da
lea edx, [ebp - 0x3c]
mov eax, 2
call fcn.00402994
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00408604
mov eax, dword [ebp - 0x38]
mov edx, 0x49bff0
call fcn.00403f40
jne 0x49b7da
lea edx, [ebp - 0x40]
mov eax, 4
call fcn.00402994
mov eax, dword [ebp - 0x40]
call fcn.00408928
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 0x44]
mov eax, 5
call fcn.00402994
mov eax, dword [ebp - 0x44]
call fcn.00408928
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x49be2e
mov eax, dword [0x4a1254]
mov edx, 0x49be78
call fcn.00403f40
jne 0x49bd56
mov dl, 1
mov eax, dword [0x40e79c]
call fcn.00402edc
mov dword [0x4a1258], eax
lea edx, [ebp - 0x48]
mov eax, 2
call fcn.00402994
mov edx, dword [ebp - 0x48]
mov eax, dword [0x4a1258]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov eax, dword [0x4a1258]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x49b94a
mov dword [0x4a125c], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
mov edx, dword [0x4a125c]
mov eax, dword [0x4a1258]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x54]
mov ecx, 2
mov edx, 1
call fcn.00404038
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00408604
mov edx, dword [ebp - 0x4c]
mov eax, 0x4a1250
call fcn.00403c04
push 0x4a1254
lea ecx, [ebp - 0x58]
mov edx, dword [0x4a125c]
mov eax, dword [0x4a1258]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x58]
mov ecx, 0x7fffffff
mov edx, 3
call fcn.00404038
mov eax, dword [0x4a1250]
mov edx, 0x49c004
call fcn.00403f40
jne 0x49b8e0
xor eax, eax
push ebp
push 0x49b8d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a1254]
call fcn.00402a28
call fcn.00402828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b8e0
mov eax, dword [0x4a1250]
mov edx, 0x49c010
call fcn.00403f40
jne 0x49b901
mov eax, dword [0x4a1254]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, dword [0x4a1250]
mov edx, 0x49c01c
call fcn.00403f40
jne 0x49b91c
mov eax, dword [0x4a1254]
call fcn.0049ae60
mov eax, dword [0x4a1250]
mov edx, 0x49c028
call fcn.00403f40
jne 0x49b937
mov eax, dword [0x4a1254]
call fcn.0049af50
dec dword [0x4a125c]
cmp dword [0x4a125c], 0xffffffff
jne 0x49b833
mov eax, dword [0x4a1258]
call fcn.00402f0c
mov eax, 0x4a1250
mov edx, 0x104
call fcn.00404164
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.00402994
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408d18
mov edx, dword [ebp - 0x5c]
mov eax, 0x4a124c
call fcn.00403c04
mov eax, dword [0x4a1250]
call fcn.00403ff4
push eax
push 0
push 0x49c02c
mov eax, dword [0x4a124c]
call fcn.00403ff4
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x4a1250]
call fcn.00403ff4
call fcn.00408edc
mov edx, eax
mov eax, 0x4a1250
call fcn.00404164
mov eax, dword [0x4a1250]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_DeleteFileA
lea ecx, [ebp - 0x64]
mov edx, 0x49c038
mov eax, dword [0x4a1250]
call fcn.00408c50
mov edx, dword [ebp - 0x64]
mov eax, 0x4a1250
call fcn.00403c04
push dword [0x4a124c]
push 0x49c048
lea edx, [ebp - 0x68]
mov eax, dword [0x4a1250]
call fcn.00408d74
push dword [ebp - 0x68]
mov eax, 0x4a1250
mov edx, 3
call fcn.00403ef0
mov edx, dword [0x4a1250]
mov eax, 0x4a1260
call fcn.00405dce
mov eax, 0x4a1260
call fcn.00405eee
call fcn.00402828
mov edx, 0x49c054
mov eax, 0x4a1260
call fcn.004041c8
call fcn.00405fc7
call fcn.00402828
lea edx, [ebp - 0x70]
xor eax, eax
call fcn.00402994
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x49c060
call fcn.00403e7c
mov edx, dword [ebp - 0x6c]
mov eax, 0x4a1260
call fcn.004041c8
call fcn.00405fc7
call fcn.00402828
push 0x49c070
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.00402994
push dword [ebp - 0x78]
push 0x49c084
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.00403ef0
mov edx, dword [ebp - 0x74]
mov eax, 0x4a1260
call fcn.004041c8
call fcn.00405fc7
call fcn.00402828
lea eax, [ebp - 0x7c]
mov ecx, dword [0x4a1250]
mov edx, 0x49c060
call fcn.00403e7c
mov edx, dword [ebp - 0x7c]
mov eax, 0x4a1260
call fcn.004041c8
call fcn.00405fc7
call fcn.00402828
mov eax, 0x4a1260
call fcn.00405e70
call fcn.00402828
mov eax, dword [0x49eea4]
cmp dword [eax], 2
jne 0x49bb0e
push 4
push 0
push ebx
call sub.KERNEL32.DLL_MoveFileExA
push 0x49c098
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x49c0c4
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x80]
mov cx, word [0x49c0dc]
mov dl, 2
call fcn.0044a258
mov dword [0x4a14b4], eax
xor eax, eax
push ebp
push 0x49bbf8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c0e8
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x49c104
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov edx, dword [ebp - 0x84]
mov eax, dword [0x4a14b4]
call fcn.00434f00
push 0x49c128
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x49c134
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x88]
push eax
mov edx, 0x49c154
mov eax, dword [0x4a14b4]
call fcn.004148dc
mov edx, dword [0x4207b4]
call fcn.0040309c
pop edx
call fcn.00434f00
mov eax, dword [0x4a14b4]
mov edx, dword [eax]
call dword [edx + 0xd8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bbff
mov eax, dword [0x49eaa0]
call fcn.00402f0c
mov eax, dword [0x4a14b4]
call fcn.00402f0c
ret
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
call fcn.0042eed8
mov ecx, dword [0x49ec98]
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
mov edx, dword [0x479f7c]
call fcn.0042eef0
mov ecx, dword [0x49ee64]
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
mov edx, dword [0x49ac8c]
call fcn.0042eef0
mov eax, dword [0x49ec98]
mov eax, dword [eax]
cmp byte [eax + 0xdb5], 0
jne 0x49be2e
lea eax, [ebp - 0xa0]
mov edx, dword [0x49ec98]
mov edx, dword [edx]
add edx, 0x21f0
mov ecx, 0x400
call fcn.00403de0
mov edx, dword [ebp - 0xa0]
mov eax, dword [0x49ee64]
mov eax, dword [eax]
call fcn.00434f00
mov eax, dword [0x49ee64]
mov eax, dword [eax]
call fcn.0043af80
mov eax, dword [0x49ec98]
mov eax, dword [eax]
cmp dword [eax + 0x2198], 1
jne 0x49be22
mov eax, dword [0x49ed10]
cmp dword [eax + 0x18], 1
jne 0x49be22
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
mov byte [eax + 0x4b], 0
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
call fcn.0042e8c8
mov eax, dword [0x49ec98]
mov eax, dword [eax]
xor edx, edx
call fcn.0047daf0
mov eax, dword [0x49ed4c]
mov eax, dword [eax]
call fcn.0042ef70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49be53
lea eax, [ebp - 0xa0]
mov edx, 0x25
call fcn.00403bd4
ret