Function at 0x40d420
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call fcn.00427b7f
add esp, 4
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
test esi, esi
je 0x40d686
xorps xmm0, xmm0
lea eax, [ebp - 0x278]
push eax
mov edx, edi
mov ecx, esi
movups xmmword [ebp - 0x278], xmm0
movups xmmword [ebp - 0x268], xmm0
call fcn.004074d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x40d4a6
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.mkcol
push str._s:_mg_stat__s__failed:__s
push esi
call fcn.00406360
add esp, 0x14
mov eax, dword [ebp - 0x270]
or eax, dword [ebp - 0x26c]
je 0x40d4d0
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x195
jmp 0x40d67d
mov eax, dword [esi + 0x2fc]
sub eax, dword [esi + 0x2f8]
test eax, eax
jle 0x40d4fc
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x19f
jmp 0x40d67d
push ecx
lea eax, [ebp - 0x250]
mov edx, edi
push eax
call fcn.00407330
add esp, 8
lea eax, [ebp - 0x250]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
neg ecx
sbb ecx, ecx
neg ecx
dec ecx
test eax, eax
je 0x40d60d
lea eax, [ebp - 0x258]
mov dword [esi + 0x300], 0xc9
push eax
call fcn.0042ab9a
add esp, 4
test eax, eax
je 0x40d561
push eax
push str._a___d__b__Y__H:_M:_S_GMT
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0042a8be
add esp, 0x10
jmp 0x40d58b
lea ecx, [ebp - 0x48]
mov edi, str.Thu__01_Jan_1970_00:00:00_GMT
mov eax, ecx
mov edx, 0x40
sub edi, eax
cmp edx, 1
jbe 0x40d584
mov al, byte [edi + ecx]
dec edx
mov byte [ecx], al
inc ecx
cmp byte [edi + ecx], 0
jne 0x40d572
mov byte [ecx], 0
mov byte [ebp - 9], 0
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x300]
push str.HTTP_1.1__d_Created_r_nDate:__s_r_n
push esi
call fcn.00408ca0
mov eax, dword [esi + 0x270]
push dword [eax + 0x98]
call fcn.0042caf6
add esp, 0x14
test eax, eax
jg 0x40d5c8
push str.Cache_Control:_no_cache__no_store__must_revalidate__private__max_age0_r_nPragma:_no_cache_r_nExpires:_0_r_n
push esi
call fcn.00408ca0
add esp, 8
jmp 0x40d5d7
push eax
push str.Cache_Control:_max_age_u_r_n
push esi
call fcn.00408ca0
add esp, 0xc
mov ecx, esi
call fcn.00406980
test eax, eax
mov edx, str.close
mov ecx, str.keep_alive
cmove ecx, edx
push ecx
push str.Content_Length:_0_r_nConnection:__s_r_n_r_n
push esi
call fcn.00408ca0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422702
mov esp, ebp
pop ebp
ret
cmp ecx, 0xffffffff
jne 0x40d686
call fcn.0042c860
cmp dword [eax], 0x11
je 0x40d4b4
call fcn.0042c860
cmp dword [eax], 0xd
jne 0x40d643
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x193
jmp 0x40d67d
call fcn.0042c860
cmp dword [eax], 2
jne 0x40d666
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x199
jmp 0x40d67d
call ebx
push eax
call fcn.00431e66
add esp, 4
push eax
push edi
push str.fopen__s_:__s
push 0x1f4
push esi
call fcn.00406f20
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422702
mov esp, ebp
pop ebp
ret