Function at 0x40dd90
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x41f415
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x435700]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x10c]
mov esi, ecx
push str.COffersHandler::downloadRequestSync
mov eax, 0x17
mov ecx, 0x425018
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], edi
call fcn.00418730
push eax
push 0x4357bc
lea ecx, [ebp]
call fcn.00405e00
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040cdc0
mov ebx, eax
test ebx, ebx
je 0x40e187
lea ecx, [ebp + 0xc8]
push ecx
mov ecx, ebx
call fcn.0040b900
lea edx, [ebp + 0xac]
push edx
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0040b8d0
lea eax, [ebp + 0xc8]
push eax
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
sub esp, 0x1c
lea edx, [ebp + 0xac]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [ebp + 0x90]
push eax
mov ecx, esi
call fcn.0040c1c0
lea ecx, [ebp + 0x58]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040b8a0
push 0x4290b0
lea edx, [ebp + 0x90]
push edx
lea eax, [ebp + 0xe4]
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
lea ecx, [ebp + 0x58]
push ecx
lea ecx, [ebp + 0xe4]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
sub esp, 0x1c
lea edx, [ebp + 0xac]
mov ecx, esp
mov dword [ebp - 0x18], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
sub esp, 0x1c
lea eax, [ebp + 0xe4]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0040c0b0
test eax, eax
je 0x40e0fc
cmp dword [esi + 0xc], 0
je 0x40df25
sub esp, 0x1c
lea edx, [ebp + 0xc8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push 1
call eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, ebx
call fcn.0040dc60
mov esi, dword [ebp - 0x28]
mov ecx, esi
sub ecx, dword [ebp - 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov byte [ebp - 4], 9
xor ebx, ebx
cmp ebx, edi
jge 0x40e07f
sub esi, dword [ebp - 0x2c]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40df79
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebx*8]
sub ecx, ebx
lea eax, [edx + ecx*4]
push eax
lea ecx, [ebp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.mgcommon.dll__IsDirExist_4]
test eax, eax
jne 0x40dfc2
lea ecx, [ebp + 0x90]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mgcommunication.dll_public:_void___thiscall_CDownloadManager::constructor_void_]
lea ecx, [ebp + 0xe4]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
lea ecx, [ebp + 0x74]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push 0
push 0
push esi
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mgcommunication.dll_public:_int___thiscall_CDownloadManager::URLDownload_wchar_t_const___wchar_t___class_CBSCallbackImpl___int_]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e05c
lea ecx, [ebp + 0xac]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
lea ecx, [ebp + 0xe4]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push esi
push eax
call dword [sym.imp.mgcommon.dll__IsFileExistCRC_8]
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x40e03d
cmp dword [edi + 0xc], eax
je 0x40e036
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 2
call edx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mgcommunication.dll_public_virtual:_void___thiscall_CDownloadManager::destructor_void_]
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x28]
jmp 0x40e082
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mgcommunication.dll_public_virtual:_void___thiscall_CDownloadManager::destructor_void_]
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [ebp - 0x28]
inc ebx
jmp 0x40df51
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x40e0bd
lea esi, [ebx + 3]
cmp dword [ebp - 0x14], ebx
je 0x40e094
lea esi, [ebx + 2]
sub esp, 0x1c
lea eax, [ebp + 0xc8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi + 0xc]
mov eax, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
push esi
call edx
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
cmp edi, ebx
je 0x40e0e5
cmp edi, esi
je 0x40e0d9
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 0x1c
jmp 0x40e0c8
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x40e12d
cmp dword [esi + 0xc], 0
mov dword [ebp - 0x14], 1
je 0x40e12d
sub esp, 0x1c
lea edx, [ebp + 0xc8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esi + 0xc]
mov edx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edx
push 4
call eax
lea ecx, [ebp + 0xe4]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0xac]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0xc8]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00405ea0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0041d649
add ebp, 0x104
mov esp, ebp
pop ebp
ret 4