Function at 0x434130
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50db5a
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x554418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x244], esi
xor eax, eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x234], eax
lea eax, [esi + 0x40]
push 0
push dword [eax]
mov dword [esi + 0x28], 2
push 0
mov dword [ebp - 0x258], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
mov dword [ebp - 0x224], str.update.exe
lea eax, [esi + 0x34]
mov dword [ebp - 0x220], 0x51a010
mov dword [ebp - 0x21c], str.NetBridge.dll
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x25c], eax
nop
push 0x51a054
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00422770
add esp, 0xc
mov ebx, dword [ebp + ebx*4 - 0x224]
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4341eb
xor ecx, ecx
jmp 0x4341ff
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4341f0
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x228]
mov edi, ebx
sub edi, eax
mov dword [ebp - 0x230], ebx
sar edi, 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x238], esi
test ecx, ecx
js 0x434824
test ebx, ebx
jne 0x43422a
xor edx, edx
jmp 0x43423c
push ecx
push ebx
call fcn.004da655
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x228]
mov ecx, SysReAllocString
mov dword [ebp - 0x22c], edx
sub ecx, edx
cmp ecx, esi
jl 0x434824
add esi, edx
js 0x434824
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x43427c
push esi
lea ecx, [ebp - 0x228]
call fcn.0040dca0
mov eax, dword [ebp - 0x228]
mov edx, dword [ebp - 0x238]
cmp edi, edx
lea edi, [eax + edi*2]
jbe 0x43428f
mov edi, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x22c]
lea eax, [eax + edx*2]
push ecx
push edi
push ecx
push eax
call fcn.0040d4c0
mov eax, dword [ebp - 0x228]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x434824
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x228]
push ebx
push dword [ebp - 0x258]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x240]
push eax
call fcn.00422770
add esp, 0xc
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4344a6
mov eax, dword [ebp - 0x244]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x34]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x434309
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x43431d
call fcn.00407780
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x43481a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
or eax, 4
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], eax
test ebx, ebx
jne 0x43434a
xor edi, edi
jmp 0x43435f
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x434350
sub edi, ecx
sar edi, 1
mov eax, dword [ebp - 0x244]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x230], eax
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x22c], eax
lea edx, [eax + edi]
test edx, edx
js 0x434824
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4343a5
push edx
lea ecx, [ebp - 0x24c]
call fcn.0040dca0
mov esi, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x22c]
push eax
push dword [ebp - 0x230]
push eax
push esi
call fcn.0040d4c0
mov eax, dword [ebp - 0x22c]
push edi
push ebx
push edi
lea eax, [esi + eax*2]
push eax
call fcn.0040d4c0
mov eax, dword [ebp - 0x22c]
add esp, 0x20
add eax, edi
cmp eax, dword [esi - 8]
jg 0x434824
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov dword [ebp - 0x238], ecx
cmp edi, ecx
je 0x434462
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x230], eax
jl 0x434453
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x434453
push edi
call fcn.004235b0
mov edx, dword [ebp - 0x230]
add esp, 4
mov dword [ebp - 0x22c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x434448
mov esi, dword [ebp - 0x238]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
add eax, 0x10
mov dword [ebp - 0x228], eax
jmp 0x434462
push dword [esi - 0xc]
lea ecx, [ebp - 0x228]
push esi
call fcn.004117d0
mov esi, dword [ebp - 0x234]
or eax, 0xffffffff
and esi, 0xfffffffb
mov byte [ebp - 4], 1
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x248], esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x434496
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4344b1
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x43472e
mov edi, dword [ebp - 0x244]
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x34]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x4344ce
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x4344e2
call fcn.00407780
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
test eax, eax
je 0x43481a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x234]
or eax, 8
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x23c], eax
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x230], eax
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x22c], edx
lea edi, [edx + 6]
test edi, edi
js 0x434824
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x434547
push edi
lea ecx, [ebp - 0x250]
call fcn.0040dca0
mov esi, dword [ebp - 0x250]
mov edx, dword [ebp - 0x22c]
push edx
push dword [ebp - 0x230]
push edx
push esi
call fcn.0040d4c0
mov eax, dword [ebp - 0x22c]
add esp, 0x10
lea ecx, [esi + eax*2]
test ecx, ecx
jne 0x434577
call fcn.004d715a
mov dword [eax], 0x16
call fcn.004d6ff9
jmp 0x43458b
movq xmm0, qword [str.Utils]
movq qword [ecx], xmm0
mov eax, dword [0x51a06c]
mov dword [ecx + 8], eax
cmp edi, dword [esi - 8]
jg 0x434824
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
lea edi, [esi - 0x10]
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
mov dword [ebp - 0x238], ecx
cmp edi, ecx
je 0x434617
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x230], eax
jl 0x434608
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x434608
push edi
call fcn.004235b0
mov edx, dword [ebp - 0x230]
add esp, 4
mov dword [ebp - 0x22c], eax
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4345fd
mov esi, dword [ebp - 0x238]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x22c]
add eax, 0x10
mov dword [ebp - 0x228], eax
jmp 0x434617
push dword [esi - 0xc]
lea ecx, [ebp - 0x228]
push esi
call fcn.004117d0
mov eax, dword [ebp - 0x248]
and eax, 0xfffffff7
mov byte [ebp - 4], 1
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x23c], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x434645
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x43464d
xor ecx, ecx
jmp 0x434661
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434652
sub ecx, edx
sar ecx, 1
mov eax, dword [ebp - 0x228]
mov edx, ebx
sub edx, eax
sar edx, 1
mov dword [ebp - 0x248], edx
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x230], esi
test ecx, ecx
js 0x434824
test ebx, ebx
jne 0x43468c
xor edi, edi
jmp 0x43469e
push ecx
push ebx
call fcn.004da655
mov edi, eax
add esp, 8
mov eax, dword [ebp - 0x228]
mov ecx, SysReAllocString
sub ecx, edi
cmp ecx, esi
jl 0x434824
add esi, edi
js 0x434824
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4346d8
push esi
lea ecx, [ebp - 0x228]
call fcn.0040dca0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x248]
mov edx, dword [ebp - 0x230]
cmp ecx, edx
ja 0x4346eb
lea ebx, [eax + ecx*2]
push edi
push ebx
lea eax, [eax + edx*2]
push edi
push eax
call fcn.0040d4c0
mov eax, dword [ebp - 0x228]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x434824
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x228]
mov word [eax + esi*2], cx
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43473e
push 0
push dword [ebp - 0x240]
push dword [ebp - 0x228]
call esi
mov edx, dword [ebp - 0x240]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434760
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434785
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x25c]
inc ebx
mov dword [ebp - 0x254], ebx
cmp ebx, 3
jb 0x4341c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d3ba0
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
add esp, 0xc
push dword [ebx + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.kantu_update.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 0x38]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f0c9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406290
push 0x80070057
call fcn.00406290
int3