Function at 0x421a60
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0896
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2384
call fcn.00592b40
mov eax, dword [0x66a8c4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ebx, ecx
push 0x40
lea ecx, [ebp - 0x5c]
push 0
push ecx
mov dword [ebp - 0x229c], ebx
mov dword [ebp - 0x22a0], eax
mov edi, edx
mov dword [ebp - 4], 0
call fcn.00591690
add esp, 0xc
push 0x104
lea edx, [ebp - 0x164]
push 0
push edx
call fcn.00591690
add esp, 0xc
lea esi, [ebp - 0x5c]
call fcn.0041d260
test al, al
jne 0x421ae9
xor eax, eax
jmp 0x422718
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call fcn.00403c80
push eax
lea ecx, [ebp - 0x164]
push str._s_s
push ecx
call fcn.0059143e
add esp, 0x10
push 1
lea edx, [ebp - 0x164]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x421ae2
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422713
mov dword [ebp - method.CppSQLite3DB.virtual_0], vtable.CppSQLite3DB.0
mov dword [ebp - 0x2294], 0
mov dword [ebp - 0x2290], 0xea60
mov eax, edi
lea ebx, [ebp - 0x2298]
mov byte [ebp - 4], 1
call fcn.00430ce0
lea ecx, [ebp - 0x22c8]
push ecx
call fcn.00424820
mov edx, ebx
push edx
lea eax, [ebp - 0x227c]
mov byte [ebp - 4], 2
call fcn.00430d80
mov byte [ebp - 4], 3
lea eax, [ebp - 0x227c]
call fcn.00430ad0
test al, al
jne 0x42222a
lea esi, [ebp - 0x225c]
call fcn.0041c4f0
xor esi, esi
push 0x1000
lea eax, [ebp - 0x2164]
push esi
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0x228c], esi
mov dword [ebp - 0x2260], esi
mov dword [ebp - 0x2288], esi
call fcn.00591690
add esp, 0xc
push 0x1000
lea ecx, [ebp - 0x1164]
push esi
push ecx
call fcn.00591690
add esp, 0xc
mov ebx, str.host_key
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421c37
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421c21
mov eax, 0x6021c6
jmp 0x421c31
mov edx, dword [ebp - 0x2274]
push edi
push edx
call fcn.00457a70
add esp, 8
mov dword [ebp - 0x228c], eax
mov ebx, str.name
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421c8b
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421c75
mov eax, 0x6021c6
jmp 0x421c85
mov eax, dword [ebp - 0x2274]
push edi
push eax
call fcn.00457a70
add esp, 8
mov dword [ebp - 0x2260], eax
mov ebx, str.value
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421cdb
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421cc9
mov eax, 0x6021c6
jmp 0x421cd9
mov ecx, dword [ebp - 0x2274]
push edi
push ecx
call fcn.00457a70
add esp, 8
mov esi, eax
mov ebx, 0x603770
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421d2f
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421d19
mov eax, 0x6021c6
jmp 0x421d29
mov edx, dword [ebp - 0x2274]
push edi
push edx
call fcn.00457a70
add esp, 8
mov dword [ebp - 0x2288], eax
mov ebx, str.creation_utc
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421d8a
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421d6c
xor eax, eax
xor ecx, ecx
jmp 0x421d7e
mov eax, dword [ebp - 0x2274]
push edi
push eax
call fcn.004579d0
add esp, 8
mov ecx, edx
mov dword [ebp - 0x21b4], eax
mov dword [ebp - 0x21b0], ecx
mov ebx, str.expires_utc
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421de5
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421dc7
xor eax, eax
xor ecx, ecx
jmp 0x421dd9
mov ecx, dword [ebp - 0x2274]
push edi
push ecx
call fcn.004579d0
add esp, 8
mov ecx, edx
mov dword [ebp - 0x21ac], eax
mov dword [ebp - 0x21a8], ecx
mov ebx, str.secure
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421e36
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421e20
xor eax, eax
jmp 0x421e30
mov edx, dword [ebp - 0x2274]
push edi
push edx
call fcn.00457970
add esp, 8
mov dword [ebp - 0x219c], eax
mov ebx, str.httponly
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421e87
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421e71
xor eax, eax
jmp 0x421e81
mov eax, dword [ebp - 0x2274]
push edi
push eax
call fcn.00457970
add esp, 8
mov dword [ebp - 0x2198], eax
mov ebx, str.last_access_utc
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421ee2
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421ec4
xor eax, eax
xor ecx, ecx
jmp 0x421ed6
mov ecx, dword [ebp - 0x2274]
push edi
push ecx
call fcn.004579d0
add esp, 8
mov ecx, edx
mov dword [ebp - 0x21a4], eax
mov dword [ebp - 0x21a0], ecx
mov ebx, str.has_expires
lea edi, [ebp - 0x227c]
call fcn.00430930
mov ecx, eax
mov edx, edi
call fcn.00430a20
cmp eax, 5
je 0x421f33
call fcn.00430930
mov edi, eax
mov ecx, eax
lea edx, [ebp - 0x227c]
call fcn.00430a20
cmp eax, 5
jne 0x421f1d
xor eax, eax
jmp 0x421f2d
mov edx, dword [ebp - 0x2274]
push edi
push edx
call fcn.00457970
add esp, 8
mov dword [ebp - 0x2194], eax
mov edi, dword [ebp - 0x228c]
test edi, edi
je 0x4221d4
cmp dword [ebp - 0x2260], 0
je 0x4221d4
cmp dword [ebp - 0x2288], 0
je 0x4221d4
lea ecx, [ebp - 0x2180]
call fcn.00403ca0
lea eax, [ebp - 0x2180]
push eax
mov byte [ebp - 4], 5
call fcn.00421a20
test al, al
je 0x4221c5
lea ecx, [ebp - 0x2180]
call fcn.00408810
test al, al
jne 0x4221c5
cmp byte [esi], al
jne 0x421ff3
mov ebx, str.encrypted_value
lea eax, [ebp - 0x227c]
call fcn.00430910
test al, al
jne 0x42200a
lea ecx, [ebp - 0x2280]
push ecx
lea eax, [ebp - 0x227c]
call fcn.004308e0
lea ebx, [ebp - 0x2164]
call fcn.0041cf70
test eax, eax
je 0x42200a
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421fd0
sub eax, edx
je 0x42200a
lea ecx, [ebp - 0x2164]
lea edx, [ebp - 0x1164]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x421fe7
jmp 0x42200a
mov ecx, esi
lea edx, [ebp - 0x1164]
jmp 0x422000
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x422000
lea eax, [ebp - 0x1164]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422013
sub eax, edx
je 0x4221c5
mov ebx, dword [ebp - 0x228c]
test ebx, ebx
je 0x422038
lea edx, [ebp - 0x2224]
push edx
call fcn.00421990
push ebx
lea ecx, [ebp - 0x2240]
call fcn.00403c60
mov eax, dword [ebp - 0x2260]
push eax
lea ecx, [ebp - 0x2208]
call fcn.00403c60
lea ecx, [ebp - 0x1164]
push ecx
lea ecx, [ebp - 0x21ec]
call fcn.00403c60
mov edx, dword [ebp - 0x2288]
push edx
lea ecx, [ebp - 0x21d0]
call fcn.00403c60
push str.http:__
lea ecx, [ebp - 0x225c]
call fcn.004014e0
lea eax, [ebp - 0x2224]
push eax
lea ecx, [ebp - 0x225c]
call fcn.004035d0
lea ecx, [ebp - 0x22a8]
push ecx
lea ebx, [ebp - 0x2180]
lea esi, [ebp - 0x22c8]
call fcn.004241d0
lea esi, [ebp - 0x234c]
lea edi, [ebp - 0x22c8]
call fcn.0041f4b0
mov edi, eax
lea esi, [ebp - 0x22a8]
call fcn.00424350
test al, al
je 0x4220ef
lea edx, [ebp - 0x225c]
push edx
call fcn.0041f4d0
add eax, 0x28
call fcn.00423ce0
jmp 0x4221c5
lea eax, [ebp - 0x22ec]
push eax
call fcn.00423c80
xor eax, eax
mov dword [ebp - 0x22f4], eax
mov dword [ebp - 0x22f0], eax
lea ecx, [ebp - 0x225c]
mov bl, 6
push ecx
lea eax, [ebp - 0x22ec]
mov byte [ebp - 4], bl
call fcn.00423ce0
sub esp, 0x20
lea eax, [ebp - 0x22f4]
mov esi, esp
mov dword [ebp - 0x2280], esp
call fcn.0041e0a0
sub esp, 0x1c
lea edx, [ebp - 0x2180]
mov ecx, esp
mov dword [ebp - 0x2288], esp
push edx
mov byte [ebp - 4], 7
call fcn.00403cd0
mov byte [ebp - 4], bl
lea ebx, [ebp - 0x238c]
call fcn.00420720
add esp, 0x3c
lea ecx, [ebp - 0x2344]
push ecx
mov edi, eax
mov byte [ebp - 4], 8
call fcn.00420790
lea edx, [ebp - 0x2344]
push edx
lea eax, [ebp - 0x2300]
push eax
lea ecx, [ebp - 0x22c8]
push ecx
mov byte [ebp - 4], 9
call fcn.00424070
lea esi, [ebp - 0x231c]
call fcn.0041f3a0
lea ecx, [ebp - 0x2344]
call fcn.00403d10
lea esi, [ebp - 0x2364]
call fcn.0041f3a0
mov ecx, ebx
call fcn.00403d10
lea esi, [ebp - 0x22ec]
call fcn.0041f3a0
lea ecx, [ebp - 0x2180]
mov byte [ebp - 4], 4
call fcn.00403d10
lea esi, [ebp - 0x227c]
call fcn.00430b20
lea ecx, [ebp - 0x21d0]
mov byte [ebp - 4], 3
call fcn.00403d10
lea ecx, [ebp - 0x21ec]
call fcn.00403d10
lea ecx, [ebp - 0x2208]
call fcn.00403d10
lea ecx, [ebp - 0x2224]
call fcn.00403d10
lea ecx, [ebp - 0x2240]
call fcn.00403d10
lea ecx, [ebp - 0x225c]
call fcn.00403d10
jmp 0x421b83
lea edi, [ebp - 0x227c]
call fcn.00430bf0
mov edi, dword [ebp - 0x2294]
test edi, edi
je 0x422253
push 0
mov eax, edi
call fcn.004a27d0
add esp, 4
xor edi, edi
mov dword [ebp - 0x2294], edi
cmp dword [ebp - 0x22ac], 0
jbe 0x4226e0
lea ecx, [ebp - 0x2264]
call fcn.004b8030
mov edx, dword [ebp - 0x22b0]
mov dword [ebp - 0x2260], 0
mov esi, dword [edx]
lea ecx, [ebp - 0x2284]
call fcn.004b8030
lea eax, [ebp - 0x22c8]
push eax
lea ecx, [ebp - 0x2284]
mov dword [ebp - 0x2280], esi
call fcn.00403920
mov ecx, dword [ebp - 0x2284]
mov edx, dword [ebp - 0x2280]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], edx
jmp 0x4222c0
mov esi, dword [ebp - 0x22b0]
lea ecx, [ebp - 0x2284]
call fcn.004b8030
lea eax, [ebp - 0x22c8]
push eax
lea ecx, [ebp - 0x2284]
mov dword [ebp - 0x2280], esi
call fcn.00403920
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
je 0x42230e
lea ecx, [ebp - 0x2284]
push ecx
lea ecx, [ebp - 0x2264]
call fcn.00403b20
test al, al
jne 0x422313
call fcn.005910ab
mov edx, dword [ebp - 0x2260]
cmp edx, dword [ebp - 0x2280]
je 0x422654
xor ebx, ebx
jmp 0x422330
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x422344
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x422367
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4224fa
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x42239a
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, dword [ebp - 0x2260]
cmp ecx, dword [eax + 0x18]
jne 0x4223b5
call fcn.005910ab
mov edx, dword [ebp - 0x2260]
add edx, 0x10
lea ecx, [ebp - 0x2264]
mov dword [ebp - 0x2288], edx
call fcn.00403860
test al, al
jne 0x4223d8
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x4223fb
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
lea esi, [eax + 0x44]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x42241e
call fcn.005910ab
mov esi, dword [esi]
mov ecx, dword [ebp - 0x2288]
mov edi, ebx
imul edi, edi, 0xd8
add esi, edi
call fcn.00403c80
push eax
lea ecx, [esi + 0x38]
call fcn.00403c80
push eax
call fcn.005a58d7
add esp, 8
test eax, eax
jne 0x42264e
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x422463
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x422486
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
lea esi, [eax + 0x44]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4224a9
call fcn.005910ab
mov esi, dword [esi]
lea ecx, [ebp - 0x2264]
add esi, edi
call fcn.00403860
test al, al
jne 0x4224c1
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, dword [ebp - 0x2260]
cmp ecx, dword [eax + 0x18]
jne 0x4224dc
call fcn.005910ab
mov edx, dword [esi + 0xb8]
mov eax, dword [ebp - 0x2260]
mov dword [eax + 0x30], edx
mov ecx, dword [esi + 0xbc]
mov edx, dword [ebp - 0x2260]
mov dword [edx + 0x34], ecx
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x42250e
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x422531
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov edx, dword [eax + 0x30]
or edx, dword [eax + 0x34]
jne 0x422638
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x422551
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x422574
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x422638
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x4225a5
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, eax
mov eax, dword [ebp - 0x2260]
cmp eax, dword [ecx + 0x18]
jne 0x4225c8
call fcn.005910ab
mov eax, dword [ebp - 0x2260]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
lea esi, [eax + 0x44]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4225e9
call fcn.005910ab
mov esi, dword [esi]
lea ecx, [ebp - 0x2264]
call fcn.00403860
test al, al
jne 0x4225ff
call fcn.005910ab
lea ecx, [ebp - 0x2264]
call fcn.00403b40
mov ecx, dword [ebp - 0x2260]
cmp ecx, dword [eax + 0x18]
jne 0x42261a
call fcn.005910ab
mov edx, dword [esi + 0xb8]
mov eax, dword [ebp - 0x2260]
mov dword [eax + 0x30], edx
mov ecx, dword [esi + 0xbc]
mov edx, dword [ebp - 0x2260]
mov dword [edx + 0x34], ecx
lea esi, [ebp - 0x2264]
call fcn.00425240
mov edi, dword [ebp - 0x2294]
jmp 0x4222c0
inc ebx
jmp 0x422330
sub esp, 0x20
mov dword [ebp - 0x2280], esp
mov eax, esp
lea ecx, [ebp - 0x22c8]
push ecx
push eax
call fcn.00423fd0
mov edx, dword [ebp - 0x22a0]
push edx
lea eax, [ebp - 0x22f4]
push eax
call fcn.00420800
add esp, 0x28
lea ecx, [ebp - 0x2340]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00425410
mov ecx, dword [ebp - 0x229c]
lea edx, [ebp - 0x2340]
push edx
lea eax, [ebp - 0x2300]
push eax
add ecx, 0x3c
push ecx
mov byte [ebp - 4], 0xb
call fcn.00423da0
lea edx, [ebp - 0x2324]
push edx
mov byte [ebp - 4], 0xc
call fcn.0041f450
lea ecx, [ebp - 0x2340]
call fcn.00403d10
lea eax, [ebp - 0x22f0]
push eax
mov byte [ebp - 4], 3
call fcn.0041f450
lea ecx, [ebp - 0x227c]
mov byte [ebp - 4], 2
call fcn.004307c0
lea ecx, [ebp - 0x22c8]
push ecx
mov byte [ebp - 4], 1
call fcn.0041f450
mov byte [ebp - 4], 0
test edi, edi
je 0x422713
push 0
mov eax, edi
call fcn.004a27d0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00590c4b
mov esp, ebp
pop ebp
ret 4