Function at 0x49b62c
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 0x49b634
push ebx
push esi
push edi
mov eax, 0x49b39c
call fcn.00406838
xor eax, eax
push ebp
push 0x49bf58
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, 0x49bf68
mov dword [0x4a14a4], eax
push 0x4a1480
call sub.user32.dll_RegisterClassA
mov eax, dword [0x4a1254]
mov edx, 0x49bf84
call fcn.00403f40
jne 0x49b871
mov ecx, 0x49bf98
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, 0x49bfbc
call fcn.0040411c
mov ebx, eax
dec ebx
push 0x4a14ac
mov ecx, ebx
mov edx, 1
mov eax, dword [0x4a1250]
call fcn.00404038
push 0x49bfcc
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x49c00c
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x28]
mov cx, word [0x49c02c]
mov dl, 2
call fcn.0044a258
mov dword [0x4a14b0], eax
xor eax, eax
push ebp
push 0x49b85d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c038
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x49c058
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4a14b0]
call fcn.00434f00
push 0x49c080
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x49c090
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x30]
push eax
mov edx, 0x49c0b4
mov eax, dword [0x4a14b0]
call fcn.004148dc
mov edx, dword [0x4207b4]
call fcn.0040309c
pop edx
call fcn.00434f00
push 0x49c0c0
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x49c0cc
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x34]
push eax
mov edx, 0x49c0f0
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 0x49b864
mov eax, dword [0x4a14b0]
call fcn.00402f0c
ret
mov eax, dword [0x4a1254]
mov edx, 0x49bf84
call fcn.00403f40
jne 0x49b8e6
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, 0x49c0fc
call fcn.00403f40
jne 0x49b8e6
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 0x49bf3a
mov eax, dword [0x4a1254]
mov edx, 0x49bf84
call fcn.00403f40
jne 0x49be62
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 0x49ba56
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, 0x49c110
call fcn.00403f40
jne 0x49b9ec
xor eax, eax
push ebp
push 0x49b9e2
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 0x49b9ec
mov eax, dword [0x4a1250]
mov edx, 0x49c11c
call fcn.00403f40
jne 0x49ba0d
mov eax, dword [0x4a1254]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, dword [0x4a1250]
mov edx, 0x49c128
call fcn.00403f40
jne 0x49ba28
mov eax, dword [0x4a1254]
call fcn.0049af6c
mov eax, dword [0x4a1250]
mov edx, 0x49c134
call fcn.00403f40
jne 0x49ba43
mov eax, dword [0x4a1254]
call fcn.0049b05c
dec dword [0x4a125c]
cmp dword [0x4a125c], 0xffffffff
jne 0x49b93f
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 0x49c138
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, 0x49c144
mov eax, dword [0x4a1250]
call fcn.00408c50
mov edx, dword [ebp - 0x64]
mov eax, 0x4a1250
call fcn.00403c04
push dword [0x4a124c]
push 0x49c154
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, 0x49c160
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, 0x49c16c
call fcn.00403e7c
mov edx, dword [ebp - 0x6c]
mov eax, 0x4a1260
call fcn.004041c8
call fcn.00405fc7
call fcn.00402828
push 0x49c17c
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.00402994
push dword [ebp - 0x78]
push 0x49c190
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, 0x49c16c
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 0x49bc1a
push 4
push 0
push ebx
call sub.KERNEL32.DLL_MoveFileExA
push 0x49c1a4
lea eax, [ebp - 0x80]
push eax
mov ecx, 0x49c1d0
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x80]
mov cx, word [0x49c1e8]
mov dl, 2
call fcn.0044a258
mov dword [0x4a14b4], eax
xor eax, eax
push ebp
push 0x49bd04
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c1f4
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x49c210
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov edx, dword [ebp - 0x84]
mov eax, dword [0x4a14b4]
call fcn.00434f00
push 0x49c234
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x49c240
mov edx, dword [0x4a14ac]
mov eax, dword [0x49eaa0]
call fcn.0045aefc
mov eax, dword [ebp - 0x88]
push eax
mov edx, 0x49c260
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 0x49bd0b
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 [0x49ad98]
call fcn.0042eef0
mov eax, dword [0x49ec98]
mov eax, dword [eax]
cmp byte [eax + 0xdb5], 0
jne 0x49bf3a
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 0x49bf2e
mov eax, dword [0x49ed10]
cmp dword [eax + 0x18], 1
jne 0x49bf2e
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 0x49bf5f
lea eax, [ebp - 0xa0]
mov edx, 0x25
call fcn.00403bd4
ret