Function at 0x7d02e39d
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f0
call fcn.7d041c90
push ebx
xor ebx, ebx
cmp dword [0x7d04c538], ebx
push esi
push edi
mov esi, ecx
jne 0x7d02e3c2
call fcn.7cf69517
test eax, eax
jne 0x7d02e3eb
push 0x7d04eb68
call fcn.7cf69767
push 0x7d04c53c
push 0x7d04ea68
call fcn.7d033088
test eax, eax
jne 0x7d02e3e5
mov dword [0x7d04c53c], ebx
mov dword [0x7d04c538], ebx
push 2
lea ecx, [ebp - 0x22f0]
pop edi
lea eax, [esi + 0x18]
push 0x824
push ecx
push eax
mov dword [esi + 0x650], edi
call fcn.7d03300a
lea eax, [ebp - 0x22f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp dword [esi + 0x664], ebx
mov dword [ebp - 0x18], ecx
jne 0x7d02e7bb
lea eax, [ebp - 0x22f0]
push eax
call fcn.7d0323e6
test eax, eax
jne 0x7d02e7bb
cmp dword [ebp - 0x18], ebx
je 0x7d02e7bb
push 8
call fcn.7d042358
cmp eax, ebx
pop ecx
je 0x7d02e468
lea ecx, [ebp - 0x22f0]
push ecx
mov ecx, eax
call fcn.7d02d223
mov edi, eax
jmp 0x7d02e46a
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x64c], edi
je 0x7d02e7b0
cmp dword [edi], 0xffffffff
je 0x7d02e79e
mov eax, dword [esi + 0x648]
mov edi, dword [edi + 4]
cmp eax, ebx
mov dword [esi + 0x650], edi
je 0x7d02e4ab
cmp edi, 2
jne 0x7d02e4ab
lea ecx, [ebp - 0x10]
push ebx
push ecx
push edi
push 0x7d04c534
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 1
mov dword [ebp - 8], ebx
pop edi
cmp dword [esi + 0x650], edi
jne 0x7d02e4d4
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x22f0]
push eax
call fcn.7d02e1b0
jmp 0x7d02e6ae
mov ecx, dword [esi + 0x64c]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call fcn.7d02d504
mov eax, dword [ebp - 0xc]
push 0x7cf4a140
push eax
mov ecx, esi
push dword [esi + 0x64c]
mov dword [ebp - 8], eax
call fcn.7d02e029
cmp eax, 0xffffffff
je 0x7d02e554
mov ecx, dword [esi + 0x64c]
push ebx
push eax
call fcn.7d02d4cd
mov ecx, dword [esi + 0x64c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push 6
push eax
call fcn.7d02d484
test eax, eax
jl 0x7d02e554
cmp dword [ebp - 0x10], ebx
je 0x7d02e554
mov ax, word [ebp - 0x26]
cmp ax, 0x20
je 0x7d02e551
cmp ax, 0xd
je 0x7d02e551
cmp ax, 0xa
je 0x7d02e551
cmp ax, 9
mov dword [ebp - 4], edi
jne 0x7d02e554
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0
mov ebx, 0x7cf4a134
je 0x7d02e59e
lea eax, [ebp - 0x38]
and dword [ebp - 0x2c], 0
push 3
push eax
push dword [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0x38], 0x7cf4a124
mov dword [ebp - 0x34], edi
push dword [esi + 0x64c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x7cf4a114
mov dword [ebp - 0x24], edi
call fcn.7d02e158
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x7d02e59e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x58]
and dword [ebp - 0x54], 0
and dword [ebp - 0x4c], 0
push 2
push eax
mov ecx, esi
push dword [ebp - 8]
mov dword [ebp - 0x58], 0x7cf4a104
mov dword [ebp - 0x50], 0x7cf4a0f4
push dword [esi + 0x64c]
call fcn.7d02e158
push dword [ebp - 8]
mov ecx, esi
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push dword [esi + 0x64c]
call fcn.7d02dec0
cmp dword [ebp - 4], 0
je 0x7d02e5fb
lea eax, [ebp - 0x22f0]
push eax
push 0x7602
push esi
call fcn.7d02ddc0
add esp, 0xc
lea eax, [ebp - 0x20]
and dword [ebp - 0x1c], 0
push edi
push eax
push dword [ebp - 8]
mov ecx, esi
mov dword [ebp - 0x20], ebx
push dword [esi + 0x64c]
call fcn.7d02e158
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x7d02e66d
lea eax, [ebp - 0x14]
push edi
push eax
mov ecx, esi
push dword [ebp - 8]
mov dword [ebp - 0x14], 0x7cf4a0e4
mov dword [ebp - 0x10], edi
push dword [esi + 0x64c]
call fcn.7d02e158
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7d02e658
push ebx
mov ecx, esi
push dword [ebp - 8]
push dword [esi + 0x64c]
call fcn.7d02dec0
mov dword [ebp - 8], ebx
push 0x7648
push esi
call fcn.7d02ddc0
pop ecx
mov dword [esi + 0x66c], edi
pop ecx
jmp 0x7d02e6ae
lea eax, [ebp - 0x14]
push edi
push eax
push ebx
push dword [esi + 0x64c]
mov ecx, esi
mov dword [ebp - 0x14], 0x7cf349a4
mov dword [ebp - 0x10], edi
call fcn.7d02e158
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x7d02e695
mov dword [ebp - 4], ebx
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
push dword [esi + 0x64c]
call fcn.7d02dec0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp dword [0x7d04eb68], edi
jle 0x7d02e76e
call fcn.7cf683f5
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
push ecx
push eax
mov dword [ebp - 0x48], 0x28
call fcn.7cf685d7
mov edi, dword [0x7d04c53c]
or eax, 0xffffffff
xor edx, edx
mov ecx, 0x7d04ea6c
cmp edx, edi
jge 0x7d02e700
mov ebx, dword [ebp - 0x34]
cmp ebx, dword [ecx - 4]
jne 0x7d02e6f8
mov ebx, dword [ebp - 0x30]
cmp ebx, dword [ecx]
jne 0x7d02e6f8
mov eax, edx
inc edx
add ecx, 0x10
test eax, eax
jl 0x7d02e6e3
test eax, eax
jge 0x7d02e706
xor eax, eax
test edi, edi
jle 0x7d02e71f
mov edi, eax
shl edi, 4
mov ecx, dword [edi + 0x7d04ea70]
lea ebx, [edi + 0x7d04ea68]
cmp ecx, dword [ebx]
jne 0x7d02e735
shl eax, 4
mov edi, eax
push 1
lea ebx, [edi + 0x7d04ea68]
push ebx
push dword [ebp - 0x10]
call fcn.7cf6856d
mov eax, dword [edi + 0x7d04ea6c]
mov edx, dword [edi + 0x7d04ea74]
mov ecx, dword [ebx]
sub edx, eax
sub eax, dword [0x7d04ed70]
push edx
mov edx, dword [edi + 0x7d04ea70]
sub edx, ecx
sub ecx, dword [0x7d04ed6c]
push edx
push eax
push ecx
push 0x7646
push esi
call fcn.7d02ddc0
add esp, 0x18
push 1
pop edi
push dword [ebp - 0x18]
mov ecx, esi
push dword [ebp - 8]
push dword [esi + 0x64c]
call fcn.7d02dec0
cmp dword [0x7d04eb68], edi
jle 0x7d02eb23
push 0x760d
mov ecx, esi
call fcn.7d02dd82
jmp 0x7d02eb23
cmp edi, ebx
je 0x7d02e7b0
mov ecx, edi
call fcn.7d02d29c
push edi
call fcn.7cf5aedf
pop ecx
mov dword [esi + 0x64c], ebx
jmp 0x7d02eb23
mov eax, dword [esi + 0x648]
cmp eax, ebx
je 0x7d02e7d7
lea ecx, [ebp - 0x10]
push ebx
push ecx
push edi
push 0x7d04c534
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x7d04c53c], 1
jne 0x7d02e7fe
mov eax, dword [0x7d04ea68]
sub eax, dword [0x7d04ed6c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x7d04ea6c]
sub eax, dword [0x7d04ed70]
mov dword [ebp - 4], eax
jmp 0x7d02e804
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov edi, 0x7603
push edi
push esi
call fcn.7d02ddc0
inc edi
pop ecx
cmp edi, 0x7607
pop ecx
jb 0x7d02e809
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
push 0x7cf4a054
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.7cf690e7
mov eax, dword [esi + 0x664]
xor edi, edi
cmp eax, edi
jne 0x7d02eafa
cmp word [esi + 0x18], di
je 0x7d02eae0
cmp dword [ebp - 0x18], edi
je 0x7d02eae0
lea eax, [ebp - 0x10]
push 0x800000
push eax
lea eax, [ebp - 0x12a8]
push eax
lea eax, [ebp - 0x22f0]
push eax
mov dword [ebp - 0x10], 0x824
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathW]
mov eax, dword [esi + 0x638]
sub eax, edi
je 0x7d02e978
dec eax
je 0x7d02e957
dec eax
jne 0x7d02eb23
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, bh
movzx eax, al
push eax
movzx eax, bl
push eax
push 0x7cf3339c
push 0x7618
push esi
call fcn.7d02ddc0
add esp, 0x18
cmp dword [esi + 0x674], edi
je 0x7d02e8df
lea eax, [ebp - 0x12a8]
push eax
push 0x761b
jmp 0x7d02e9ca
xor ebx, ebx
cmp dword [0x7d04eb68], ebx
jle 0x7d02eb23
mov edi, 0x7d04ec70
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, dword [edi - 4]
sub edx, eax
sub eax, dword [ebp - 4]
push edx
mov edx, dword [edi + 4]
sub eax, dword [0x7d04ed70]
sub edx, ecx
sub ecx, dword [ebp - 0xc]
push edx
push eax
sub ecx, dword [0x7d04ed6c]
push ecx
push 0x7646
push esi
call fcn.7d02ddc0
add esp, 0x18
lea eax, [ebp - 0x12a8]
push eax
push 0x761b
push esi
call fcn.7d02ddc0
add esp, 0xc
mov ecx, esi
push 0x760d
call fcn.7d02dd82
inc ebx
add edi, 0x10
cmp ebx, dword [0x7d04eb68]
jl 0x7d02e8f2
jmp 0x7d02eb23
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, bh
movzx eax, al
nop
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x12a8]
jmp 0x7d02eb14
lea eax, [esi + 0x428]
push eax
call fcn.7d032331
test eax, eax
je 0x7d02ea36
mov eax, ebx
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, bh
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x260]
push eax
push 0x7618
push esi
call fcn.7d02ddc0
add esp, 0x18
cmp dword [esi + 0x674], edi
je 0x7d02e9d8
lea eax, [ebp - 0x12a8]
push eax
push 0x761a
push esi
call fcn.7d02ddc0
add esp, 0xc
jmp 0x7d02eb23
xor ebx, ebx
cmp dword [0x7d04eb68], edi
jle 0x7d02eb23
mov edi, 0x7d04ec70
mov eax, dword [edi]
mov ecx, dword [edi - 4]
lea edx, [ebp - 0x12a8]
push edx
mov edx, dword [edi + 8]
sub edx, eax
sub eax, dword [ebp - 4]
push edx
mov edx, dword [edi + 4]
sub eax, dword [0x7d04ed70]
sub edx, ecx
sub ecx, dword [ebp - 0xc]
push edx
push eax
sub ecx, dword [0x7d04ed6c]
push ecx
push 0x7647
push esi
call fcn.7d02ddc0
add esp, 0x1c
inc ebx
add edi, 0x10
cmp ebx, dword [0x7d04eb68]
jl 0x7d02e9eb
jmp 0x7d02eb23
cmp dword [esi + 0x674], edi
mov eax, ebx
je 0x7d02ea64
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, bh
movzx eax, al
push eax
movzx eax, bl
push eax
lea eax, [ebp - 0x12a8]
push eax
push 0x7619
jmp 0x7d02eb1a
shr eax, 0x10
movzx eax, al
push eax
xor eax, eax
mov al, bh
movzx eax, al
push eax
movzx eax, bl
push eax
push 0x7648
push esi
call fcn.7d02ddc0
add esp, 0x14
xor ebx, ebx
cmp dword [0x7d04eb68], edi
jle 0x7d02eb23
mov edi, 0x7d04ec70
mov eax, dword [edi]
mov ecx, dword [edi - 4]
lea edx, [ebp - 0x12a8]
push edx
mov edx, dword [edi + 8]
sub edx, eax
sub eax, dword [ebp - 4]
push edx
mov edx, dword [edi + 4]
sub eax, dword [0x7d04ed70]
sub edx, ecx
sub ecx, dword [ebp - 0xc]
push edx
push eax
sub ecx, dword [0x7d04ed6c]
push ecx
push 0x7647
push esi
call fcn.7d02ddc0
add esp, 0x1c
inc ebx
add edi, 0x10
cmp ebx, dword [0x7d04eb68]
jl 0x7d02ea98
jmp 0x7d02eb23
cmp eax, edi
jne 0x7d02eafa
lea eax, [esi + 0x428]
push eax
call fcn.7d032331
test eax, eax
lea eax, [ebp - 0x260]
jne 0x7d02eaff
mov eax, 0x7cf3339c
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
push ecx
xor ecx, ecx
mov cl, bh
movzx ecx, cl
push ecx
movzx ecx, bl
push ecx
push eax
push 0x7618
push esi
call fcn.7d02ddc0
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret