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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5503c8]
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
cmp byte [edi + 0x56d], 0
je 0x410026
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x41045d
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x41003a
mov eax, dword [ecx]
push 0x529254
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x528]
lea edx, [ebp - 0x128]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov dword [ebp - 4], 0
call sym.Office2.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 + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410080
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.00406a80
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
call sym.Office2.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [edi + 0x52c]
lea edx, [ebp - 0x1ac]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov ecx, eax
mov byte [ebp - 4], 3
call sym.Office2.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 0x4100e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00406a80
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 5
call sym.Office2.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.004018a0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
cmovae eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004018a0
add esp, 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0040f830
test al, al
jne 0x410175
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x4103c2
mov eax, dword [ecx]
push str.Kb:g
call dword [eax + 0x3c]
jmp 0x4103c2
mov ecx, dword [edi + 0x4dc]
lea eax, [ebp - 0x28]
cmp ecx, eax
je 0x410193
cmp dword [ebp - 0x14], 0x10
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004031f0
mov eax, dword [0x5522f0]
test eax, eax
jne 0x4101dd
push 0x1b4
call fcn.004cf87e
mov esi, eax
add esp, 4
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x4101d2
push 0x1b4
push 0
push esi
call fcn.004d1960
add esp, 0xc
mov ecx, esi
call fcn.0041af80
jmp 0x4101d4
xor eax, eax
mov byte [ebp - 4], 7
mov dword [0x5522f0], eax
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
push ecx
mov ecx, eax
call sym.Office2.exe_public_virtual:_class_DuiLib::IListCallbackUI____thiscall_DuiLib::CListUI::GetTextCallback_void_const
mov ecx, eax
call fcn.00405620
test al, al
jne 0x410218
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x4103c2
mov eax, dword [ecx]
push 0x504080
call dword [eax + 0x3c]
jmp 0x4103c2
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x410244
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x15
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
push str.http:__api.laltds.com
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
call fcn.00404160
push 0x1b
push str._api_commodity_getModelInfo
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402540
push 0xc
push str._uniqueName
lea ecx, [ebp - 0x40]
call fcn.00402540
push dword [edi + 0x4c0]
lea eax, [ebp - 0xa4]
push eax
call fcn.00401670
add esp, 8
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 0xa
jb 0x4102ad
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402540
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 9
call fcn.00403630
push 7
push str.phone
lea ecx, [ebp - 0x40]
call fcn.00402540
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402540
push 0x38
call fcn.004cf87e
mov esi, eax
add esp, 4
test esi, esi
je 0x410352
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 0x410354
xor esi, esi
lea ecx, [esi + 4]
mov dword [esi], 7
lea eax, [ebp - 0x40]
cmp ecx, eax
je 0x410375
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004031f0
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 + 0x554]
call fcn.0041e1b0
mov ecx, dword [edi + 0x530]
test ecx, ecx
je 0x4103a6
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
mov ecx, dword [edi + 0x534]
test ecx, ecx
je 0x4103ba
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
lea ecx, [ebp - 0x40]
call fcn.00403630
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x4103f6
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4103ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410478
push ecx
push edx
call fcn.004cf8ae
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x410438
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41042e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410478
push ecx
push edx
call fcn.004cf8ae
add esp, 8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00403580
lea ecx, [ebp - 0x88]
call fcn.00403580
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.004cf8bc
mov esp, ebp
pop ebp
ret
call fcn.004d54df
int3