Function at 0x40a780
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503bab
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x558]
test ecx, ecx
je 0x40a7c3
mov eax, dword [ecx]
push 0x531754
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x550]
test ecx, ecx
je 0x40a7d7
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x554]
test ecx, ecx
je 0x40a7eb
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x540]
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.CAD.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
mov dword [ebp - 0x78], 0
mov ecx, edx
mov dword [ebp - 0x74], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x88], xmm0
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a830
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00407950
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call sym.CAD.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [edi + 0x544]
lea edx, [ebp - 0x198]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov byte [ebp - 4], 3
call sym.CAD.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov edx, eax
mov dword [ebp - 0x60], 0
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x70], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a896
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00407950
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 5
call sym.CAD.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004017a0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004017a0
add esp, 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.00409e20
test al, al
jne 0x40a925
mov ecx, dword [edi + 0x558]
test ecx, ecx
je 0x40ab3f
mov eax, dword [ecx]
push str.Kb:g
call dword [eax + 0x3c]
jmp 0x40ab3f
mov ecx, dword [edi + 0x4f4]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x40a943
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402e70
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, dword [0x5616f8]
test eax, eax
jne 0x40a99e
push 0x1a0
call fcn.004d631e
mov esi, eax
add esp, 4
mov dword [ebp - 0x90], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x40a993
push 0x1a0
push 0
push esi
call fcn.004d84c0
add esp, 0xc
mov ecx, esi
call fcn.00410730
jmp 0x40a995
xor eax, eax
mov byte [ebp - 4], 7
mov dword [0x5616f8], eax
push dword [ebp - 0x8c]
mov ecx, eax
call sym.CAD.exe_public_virtual:_class_DuiLib::IListCallbackUI____thiscall_DuiLib::CListUI::GetTextCallback_void_const
mov ecx, eax
call fcn.00406230
test al, al
jne 0x40a9d3
mov ecx, dword [edi + 0x558]
test ecx, ecx
je 0x40ab3f
mov eax, dword [ecx]
push 0x50c1fc
call dword [eax + 0x3c]
jmp 0x40ab3f
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40a9ff
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push str.http:__offman.chizhoushengnuo.cn
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
call fcn.00404190
push 0x19
push str._office_getOrderByPhoneNo
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.004023c0
push 9
push str._phoneNo
lea ecx, [ebp - 0x58]
call fcn.004023c0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.004023c0
push 0xc
push str.productId0
lea ecx, [ebp - 0x58]
call fcn.004023c0
push 0x38
call fcn.004d631e
mov esi, eax
add esp, 4
test esi, esi
je 0x40aacf
mov dword [esi + 0x14], 0
xorps xmm0, xmm0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], 0
movups xmmword [esi + 0x1c], xmm0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0xf
mov byte [esi + 0x1c], 0
jmp 0x40aad1
xor esi, esi
lea ecx, [esi + 4]
mov dword [esi], 2
lea eax, [ebp - 0x58]
cmp ecx, eax
je 0x40aaf2
cmp dword [ebp - 0x44], 0x10
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00402e70
mov ecx, edi
lea eax, [edi + 0x4b8]
neg ecx
push esi
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x34], ecx
lea ecx, [edi + 0x574]
call fcn.00414a80
mov ecx, dword [edi + 0x548]
test ecx, ecx
je 0x40ab23
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
mov ecx, dword [edi + 0x54c]
test ecx, ecx
je 0x40ab37
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
lea ecx, [ebp - 0x58]
call fcn.004033e0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40ab73
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac69
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x40abb9
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40abaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac69
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 8
jb 0x40ac01
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40abf7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac69
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x40ac4e
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ac44
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ac69
push ecx
push edx
call fcn.004d634e
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.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3