Function at 0x40a220
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcaae
mov eax, dword fs:[0]
push eax
sub esp, 0x5e0
mov eax, dword [0x5293c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ecx, dword [esi + 0x504]
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.GameDownloader.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
mov dword [ebp - 0x4c], 0
mov ecx, edx
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a290
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00408380
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401780
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c8], eax
mov eax, dword [0x52ae64]
test eax, eax
jne 0x40a32f
push 0xf4
call fcn.004b5cee
mov edi, eax
add esp, 4
mov dword [ebp - 0x5d4], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x40a324
push 0xf4
push 0
push edi
call fcn.004b7c40
add esp, 0xc
mov ecx, edi
call fcn.0040bb90
jmp 0x40a326
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x52ae64], eax
push dword [ebp - 0x5c8]
mov ecx, eax
call sym.GameDownloader.exe_public_virtual:_class_DuiLib::IListCallbackUI____thiscall_DuiLib::CListUI::GetTextCallback_void_const
mov ecx, eax
call fcn.00407e50
test al, al
jne 0x40a3d1
push 0x564
lea eax, [ebp - 0x5c0]
push 0
push eax
call fcn.004b7c40
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x5c0]
push eax
call fcn.00411f20
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x4e1d04
mov byte [ebp - 4], 5
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5c0]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
lea ecx, [ebp - 0x5c0]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 0
lea ecx, [ebp - 0x5c0]
call fcn.004130e0
push 0x4e1e3c
lea ecx, [ebp - 0x5c0]
call fcn.004134f0
push 0x4e1e48
jmp 0x40a461
mov ecx, esi
call fcn.0040a8d0
test al, al
jne 0x40a487
push 0x564
lea eax, [ebp - 0x5c0]
push 0
push eax
call fcn.004b7c40
add esp, 0xc
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x5c0]
push eax
call fcn.00411f20
push 0
push 0
push 0
push 0
push 0
push 0x100
push 0x10ce0000
push 0x4e1d04
mov byte [ebp - 4], 6
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5c0]
call sym.GameDownloader.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
lea ecx, [ebp - 0x5c0]
call sym.GameDownloader.exe_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
push 0
lea ecx, [ebp - 0x5c0]
call fcn.004130e0
push 0x4e1e6c
lea ecx, [ebp - 0x5c0]
call fcn.004134f0
push 0x4e1e78
lea ecx, [ebp - 0x5c0]
call fcn.00413420
lea ecx, [ebp - 0x5c0]
call sym.GameDownloader.exe_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_
lea ecx, [ebp - 0x5c0]
call fcn.004120d0
jmp 0x40a7a3
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov ecx, esi
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.00408b50
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402280
mov byte [ebp - 4], 7
call fcn.0040a850
mov ecx, eax
call fcn.0040c2c0
push eax
lea eax, [ebp - 0x5ec]
push eax
call fcn.00401550
add esp, 8
cmp dword [eax + 0x14], 0xf
mov ecx, eax
mov byte [ebp - 4], 8
jbe 0x40a4ea
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00402160
lea ecx, [ebp - 0x5ec]
mov byte [ebp - 4], 7
call fcn.00402da0
push 4
push str..zip
lea ecx, [ebp - 0x44]
call fcn.00402160
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x34
call fcn.004b5cee
mov esi, eax
add esp, 4
test esi, esi
je 0x40a57a
mov dword [esi + 0x28], 0
xorps xmm0, xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
jmp 0x40a57c
xor esi, esi
lea eax, [ebp - 0x5ec]
push eax
call fcn.0040a850
mov ecx, eax
call fcn.0040c1b0
mov edi, eax
cmp esi, edi
je 0x40a5bd
mov ecx, esi
call fcn.00402da0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x5ec]
call fcn.00402da0
lea edi, [esi + 0x18]
lea eax, [ebp - 0x44]
cmp edi, eax
je 0x40a714
cmp dword [ebp - 0x30], 0xf
mov edx, dword [edi + 0x14]
cmova eax, dword [ebp - 0x44]
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5d4], edx
cmp eax, edx
ja 0x40a637
mov dword [ebp - 0x5c4], edi
mov ecx, edi
cmp edx, 0xf
jbe 0x40a60f
mov ecx, dword [edi]
mov dword [ebp - 0x5c4], ecx
push eax
push dword [ebp - 0x5d0]
mov dword [edi + 0x10], eax
push ecx
call fcn.004b76c0
mov eax, dword [ebp - 0x5cc]
add esp, 0xc
mov ecx, dword [ebp - 0x5c4]
mov byte [ecx + eax], 0
jmp 0x40a714
cmp eax, 0x7fffffff
ja 0x40a836
mov ecx, eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x40a656
mov ecx, closesocket
jmp 0x40a683
mov eax, edx
shr eax, 1
mov dword [ebp - 0x5c4], eax
mov eax, closesocket
sub eax, dword [ebp - 0x5c4]
cmp edx, eax
jbe 0x40a676
mov ecx, closesocket
jmp 0x40a683
mov eax, dword [ebp - 0x5c4]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x5c4]
mov dword [ebp - 0x5c4], ecx
push eax
push edi
call fcn.004038a0
mov ecx, dword [ebp - 0x5c4]
mov edx, eax
mov eax, dword [ebp - 0x5cc]
push eax
push dword [ebp - 0x5d0]
mov dword [ebp - 0x5c8], edx
push edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
call fcn.004b76c0
mov eax, dword [ebp - 0x5cc]
add esp, 0x14
mov ecx, dword [ebp - 0x5c8]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x5d4]
cmp eax, 0xf
jbe 0x40a712
lea ecx, [eax + 1]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x40a6fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a83b
mov eax, edx
push ecx
push eax
call fcn.004b5d1e
mov eax, dword [ebp - 0x5c8]
add esp, 8
mov dword [edi], eax
jmp 0x40a714
mov dword [edi], ecx
mov edi, dword [ebp - 0x14]
mov ecx, edi
neg ecx
push esi
sbb ecx, ecx
lea eax, [edi + 0x4b8]
and ecx, eax
mov dword [esi + 0x30], ecx
lea ecx, [edi + 0x518]
call fcn.00410490
mov ecx, dword [edi + 0x508]
mov byte [edi + 0x530], 1
test ecx, ecx
je 0x40a74f
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
mov ecx, dword [edi + 0x50c]
test ecx, ecx
je 0x40a763
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
mov ecx, dword [edi + 0x510]
test ecx, ecx
je 0x40a787
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x510]
push 0x4e1ea4
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x514]
test ecx, ecx
je 0x40a79b
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
lea ecx, [ebp - 0x44]
call fcn.00402da0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x40a7d3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a7c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a83b
push ecx
push edx
call fcn.004b5d1e
add esp, 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x40a81b
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a811
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a83b
push ecx
push edx
call fcn.004b5d1e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d2c
mov esp, ebp
pop ebp
ret
call fcn.00402b80
call fcn.004ba13f
int3