Function at 0x4a9930
Capabilities:
Delete file
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a69ed
mov eax, dword fs:[0]
push eax
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x134]
mov dword fs:[0], eax
mov esi, dword [esp + 0x144]
mov eax, dword [esp + 0x148]
push eax
push str.CPhraseSyncModule::ConvFile___s
mov ecx, esi
call fcn.004aee70
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0x13c], ebx
mov ebp, 0xa
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebx
mov byte [esp + 0x13c], 2
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push ebx
lea eax, [esp + 0x1c]
push eax
call edx
lea edi, [esp + 0x1c]
mov byte [esp + 0x13c], 3
call fcn.004035d0
mov byte [esp + 0x13c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
cmp ecx, ebx
jle 0x4a9a57
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4a9b32
cmp eax, ecx
jg 0x4a9b32
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4a9a57
push 0x5c
lea edi, [esp + 0x20]
call fcn.00404400
push ebp
push str.phrase.ini
lea ecx, [esp + 0x24]
push ecx
call fcn.00403fc0
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13c], 4
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xf8]
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
call fcn.004d1580
lea edx, [esp + 0x44]
push edx
push str.Default
lea eax, [esp + 0x100]
push eax
mov byte [esp + 0x148], 5
call fcn.004d1ab0
mov edi, dword [esp + 0x50]
lea ebx, [ebx]
cmp edi, ebx
je 0x4a9b85
cmp edi, dword [esp + 0x4c]
je 0x4a9b85
mov eax, edi
mov ecx, dword [eax + 8]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov dword [esp + 0x50], edi
je 0x4a9b53
cmp dword [esi + 0xc], ebx
lea ebp, [esi + 0xc]
jl 0x4a9b3c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a9b3c
call fcn.00403ce0
mov dword [esp + 0x40], eax
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4a9b25
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ebp, dword [esp + 0x40]
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x4a9b53
push 0x80070057
call fcn.00404550
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x50]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x4a9ad0
push ebp
lea ecx, [esp + 0x70]
call fcn.00468e80
cmp eax, ebx
jne 0x4a9b7c
mov eax, ebp
lea ebx, [esp + 0x6c]
call fcn.004ac5f0
xor ebx, ebx
jmp 0x4a9ac6
mov byte [eax + 4], 0
jmp 0x4a9ad0
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14c]
call fcn.00404460
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov byte [esp + 0x150], 7
mov edx, dword [esp + 0x38]
push closesocket
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4a9c55
call fcn.004129d0
cmp eax, ebx
jl 0x4a9c17
mov eax, esi
lea ecx, [esp + 0x84]
call fcn.004d08f0
cmp esi, ebx
je 0x4a9c17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x88]
call fcn.004d05c0
test eax, eax
je 0x4a9c72
lea esp, [esp]
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x4a9c5d
push esi
lea ecx, [esp + 0x58]
call fcn.00468e80
test eax, eax
jne 0x4a9c59
mov eax, esi
lea ebx, [esp + 0x54]
call fcn.004ac5f0
jmp 0x4a9c5d
mov esi, eax
jmp 0x4a9bfe
mov byte [eax + 4], 0
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x88]
call fcn.004d05c0
test eax, eax
jne 0x4a9c30
lea esi, [esp + 0x9c]
call fcn.004d04e0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x58]
xor ebx, ebx
push eax
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
call fcn.004a8f00
mov edx, dword [esp + 0x14c]
mov eax, dword [edx + 4]
add esp, 8
push 0x5c1b88
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.004ae540
mov byte [esp + 0x13c], 8
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x20]
lea edx, [esp + 0xc0]
push edx
call fcn.004d1580
push 0x5c0608
push str.Version
lea eax, [esp + 0xc8]
push eax
mov byte [esp + 0x148], 9
call fcn.004d2080
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov byte [esp + 0x13c], 0xa
cmp dword [esp + 0x44], ebx
je 0x4a9d40
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov ebp, eax
je 0x4a9d44
mov ebp, dword [eax]
jmp 0x4a9d44
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x18]
cmp ebp, ebx
je 0x4a9e8e
cmp ebp, dword [esp + 0x4c]
je 0x4a9e8e
mov eax, ebp
mov ecx, dword [eax + 8]
mov ebp, dword [ebp]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4a9db3
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4a9da0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a9da0
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a9d97
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x4a9db1
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov edi, dword [esp + 0x18]
xor ebx, ebx
push edi
lea ecx, [esp + 0x70]
call fcn.00468e80
test eax, eax
je 0x4a9e5e
lea ecx, [esp + 0x40]
push str.__D:
push ecx
lea ecx, [esp + 0x20]
call fcn.0043bdd0
add esp, 8
mov byte [esp + 0x13c], 0xb
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4a9e36
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4a9e23
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4a9e23
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4a9e1a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x18], edi
jmp 0x4a9e34
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00404050
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0x13c], 0xa
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push edi
lea ecx, [esp + 0x34]
call fcn.00468970
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x4a9e81
mov dword [ecx], eax
mov dword [esp + 0x2c], eax
jmp 0x4a9d48
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jmp 0x4a9d48
lea edx, [esp + 0x28]
push edx
push str.Default
lea eax, [esp + 0xc8]
push eax
call fcn.004d1d70
lea ecx, [esp + 0x28]
call fcn.004688d0
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0xa
mov byte [esp + 0x13c], 0xc
mov edx, dword [esp + 0x54]
cmp edx, ebx
mov ecx, dword [esp + 0x68]
je 0x4a9efb
cmp edx, ecx
je 0x4a9efb
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4a9efd
jmp 0x4a9ef0
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4a9ef0
jmp 0x4a9efd
xor edx, edx
cmp edx, ebx
mov esi, edx
je 0x4a9f81
jmp 0x4a9f09
mov ecx, dword [esp + 0x68]
test esi, esi
mov ebx, esi
je 0x4a9f58
mov edx, dword [esi + 0x10]
cmp edx, ecx
je 0x4a9f34
test edx, edx
je 0x4a9f2e
mov eax, dword [edx + 0xc]
cmp eax, ecx
je 0x4a9f30
mov edx, eax
mov eax, dword [edx + 0xc]
cmp eax, ecx
jne 0x4a9f21
mov esi, edx
jmp 0x4a9f58
xor edx, edx
mov esi, edx
jmp 0x4a9f58
mov eax, dword [esi + 0x14]
cmp eax, ecx
je 0x4a9f54
jmp 0x4a9f40
cmp esi, dword [eax + 0x10]
jne 0x4a9f50
mov esi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x4a9f40
jmp 0x4a9f54
cmp eax, ecx
jne 0x4a9f56
xor eax, eax
mov esi, eax
mov eax, dword [ebx]
push 0
push ebp
push eax
lea ecx, [esp + 0x34]
call fcn.00468970
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4a9f73
mov dword [ecx], eax
jmp 0x4a9f77
mov dword [esp + 0x28], eax
test esi, esi
mov ebp, eax
mov dword [esp + 0x2c], ebp
jne 0x4a9f05
lea ecx, [esp + 0x28]
push ecx
push str.Custom
lea edx, [esp + 0xc8]
push edx
call fcn.004d1d70
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 9
call fcn.004688d0
cmp byte [esp + 0xf5], 0
je 0x4a9fc0
lea eax, [esp + 0xc0]
push eax
call fcn.004d19f0
lea ecx, [esp + 0xdc]
call fcn.004d2a90
lea ecx, [esp + 0xc4]
call fcn.004688d0
push 0x5bcc3c
xor ebx, ebx
lea eax, [esp + 0xc4]
call fcn.00404050
cmp dword [esp + 0x14c], ebx
mov byte [esp + 0xf4], bl
mov byte [esp + 0xf5], bl
je 0x4aa016
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.004a9610
add esp, 8
jmp 0x4aa031
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x140], 8
call fcn.004d1650
mov byte [esp + 0x13c], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa070
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x9c]
call fcn.004d04e0
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.004d04e0
mov byte [esp + 0x13c], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa0bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xf8]
push ecx
mov byte [esp + 0x140], 4
call fcn.004d1650
lea eax, [edi - 0x10]
mov byte [esp + 0x13c], 2
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4aa0f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x6c]
call fcn.004af2c0
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x4aa112
push eax
call fcn.0057876f
add esp, 4
lea edi, [esp + 0x54]
call fcn.004af2c0
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x4aa12c
push eax
call fcn.0057876f
add esp, 4
mov dword [esp + 0x13c], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4aa150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret 0xc