Function at 0x436950
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b0aa
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5bd52c], 3
jl 0x4369e0
call fcn.00419fd0
cmp dword [eax], 0
je 0x4369e0
push 0xa0
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x140]
call fcn.00413ec0
push str.downloader::ClientManager::Pimpl::UnzipDownloader
push 0
push 3
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0xffffffff
call fcn.00414710
lea eax, [ebp - 0x88]
mov byte [ebp - 0x141], 0
push eax
call fcn.004286a0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
push 1
push 0x5c01ec
push 0x5c01cc
push 0
call fcn.004237d0
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00438b90
push 1
push 0x57446c
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00404770
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sub eax, edx
mov ecx, dword [esi + 0x10]
mov byte [ebp - 4], 3
cmp ecx, eax
jbe 0x436a9e
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, edx
jb 0x436a9e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
mov ecx, esi
push eax
push 0
call fcn.0042a850
jmp 0x436ab0
cmp dword [esi + 0x14], 8
jb 0x436aa6
mov esi, dword [esi]
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00404770
mov dword [ebp - 0x48], 0
xor ecx, ecx
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x436b20
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436b16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43717c
push edx
push ecx
call fcn.004845fc
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x436b72
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436b68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437181
push edx
push ecx
call fcn.004845fc
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x436bc7
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436bbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437186
push edx
push ecx
call fcn.004845fc
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0
push eax
mov dword [ebp - 0x74], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.downloader.7z
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004078f0
add esp, 0xc
push 0x12
xor eax, eax
mov byte [ebp - 4], 8
push str.IDR_ZIP_DOWNLOADER
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004048f0
push 0x5764e4
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 9
call fcn.00435610
mov eax, dword [eax]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x436c53
mov eax, dword [eax]
jmp 0x436c55
xor eax, eax
lea ecx, [ebp - 0xa0]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00427f10
add esp, 0xc
mov byte [ebp - 0x142], al
lea ecx, [ebp - 0x148]
call fcn.00435760
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x436cb8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436cae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43718b
push edx
push ecx
call fcn.004845fc
add esp, 8
cmp byte [ebp - 0x142], 0
je 0x4370c9
lea eax, [ebp - 0x28]
push eax
push 1
push 0x5c01ec
push 0x5c01cc
push 0
call fcn.004237d0
push eax
call fcn.004f1375
add esp, 0x14
mov ecx, eax
call fcn.00438070
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437041
lea eax, [ebp - 0x28]
push 0x1f4
push eax
call fcn.004a4360
add esp, 8
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x130], xmm0
xor eax, eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x114], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0xe
mov byte [ebp - 0xf8], 0xff
call fcn.00425e80
mov dword [ebp - 0xf4], vtable.boost::io::basic_altstringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 3
mov byte [ebp - 0xac], 0
push 0x1a
xor eax, eax
mov byte [ebp - 4], 0x10
push str.__1___x___2____o__3____aoa
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.004048f0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x13c]
call fcn.0042afc0
lea ecx, [ebp - 0x88]
call fcn.004029d0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.00430430
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.00430430
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.00430430
add esp, 0x18
lea ecx, [ebp - 0x70]
push ecx
mov ecx, eax
call fcn.0042bab0
cmp byte [ebp - 0xac], 0
mov byte [ebp - 4], 0x14
je 0x436e87
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x436e7c
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x436e7c
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 0x14
mov byte [ebp - 0xac], 0
lea ecx, [ebp - 0xf4]
call fcn.00426650
mov edx, dword [ebp - 0xfc]
cmp edx, 8
jb 0x436ed2
mov ecx, dword [ebp - 0x110]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436ec8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437190
push edx
push ecx
call fcn.004845fc
add esp, 8
mov ecx, dword [ebp - 0x130]
xor eax, eax
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 7
mov word [ebp - 0x110], ax
test ecx, ecx
je 0x436f51
mov eax, dword [ebp - 0x128]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x436f29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437195
push edx
push ecx
call fcn.004845fc
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x13c]
call fcn.00426d30
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0xffffffffffffffff
push 0
push 0
push eax
call fcn.004a2ba0
add esp, 0x14
test eax, eax
je 0x436fd2
cmp dword [0x5bd52c], 3
mov byte [ebp - 0x141], 1
jl 0x437037
call fcn.00419fd0
cmp dword [eax], 0
je 0x437037
push 0xa0
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x1e8]
call fcn.00413ec0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x16
push ecx
push 0x5765d4
push 0
push 3
jmp 0x437017
cmp dword [0x5bd52c], 1
jl 0x437037
call fcn.00419fd0
cmp dword [eax], 0
je 0x437037
push 0xa0
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x1e8]
call fcn.00413ec0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push ecx
push 0x5765f4
push 0
push 1
mov ecx, eax
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
mov ecx, eax
call fcn.00412770
lea ecx, [ebp - 0x1e8]
call fcn.00414710
lea ecx, [ebp - 0x70]
call fcn.004029d0
jmp 0x4370a6
cmp dword [0x5bd52c], 1
jl 0x4370a6
call fcn.00419fd0
cmp dword [eax], 0
je 0x4370a6
push 0xa0
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea ecx, [ebp - 0x1e8]
call fcn.00413ec0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x18
push ecx
push str.UnzipDownloader_7za.exe
push 0
push 1
mov ecx, eax
call fcn.00416ef0
mov ecx, eax
call fcn.00415300
mov ecx, eax
call fcn.00412770
lea ecx, [ebp - 0x1e8]
call fcn.00414710
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.004029d0
mov edx, dword [ebp - 0x8c]
cmp edx, 8
jb 0x437109
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4370ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43719a
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
cmp edx, 8
jb 0x43715c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x437152
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43719f
push edx
push ecx
call fcn.004845fc
add esp, 8
mov al, byte [ebp - 0x141]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
int3