Function at 0x40d590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call fcn.0042933f
add esp, 4
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], edx
test esi, esi
je 0x40d7f6
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.00407650
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
jne 0x40d616
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.mkcol
push str._s:_mg_stat__s__failed:__s
push esi
call fcn.004064e0
add esp, 0x14
mov eax, dword [ebp - 0x270]
or eax, dword [ebp - 0x26c]
je 0x40d640
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x195
jmp 0x40d7ed
mov eax, dword [esi + 0x2fc]
sub eax, dword [esi + 0x2f8]
test eax, eax
jle 0x40d66c
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x19f
jmp 0x40d7ed
push ecx
lea eax, [ebp - 0x250]
mov edx, edi
push eax
call fcn.004074b0
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 0x40d77d
lea eax, [ebp - 0x258]
mov dword [esi + 0x300], 0xc9
push eax
call fcn.0042c24a
add esp, 4
test eax, eax
je 0x40d6d1
push eax
push str._a___d__b__Y__H:_M:_S_GMT
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0042bf6e
add esp, 0x10
jmp 0x40d6fb
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 0x40d6f4
mov al, byte [edi + ecx]
dec edx
mov byte [ecx], al
inc ecx
cmp byte [edi + ecx], 0
jne 0x40d6e2
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.00408e20
mov eax, dword [esi + 0x270]
push dword [eax + 0x98]
call fcn.0042e1a6
add esp, 0x14
test eax, eax
jg 0x40d738
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.00408e20
add esp, 8
jmp 0x40d747
push eax
push str.Cache_Control:_max_age_u_r_n
push esi
call fcn.00408e20
add esp, 0xc
mov ecx, esi
call fcn.00406b00
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.00408e20
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423c62
mov esp, ebp
pop ebp
ret
cmp ecx, 0xffffffff
jne 0x40d7f6
call fcn.0042df10
cmp dword [eax], 0x11
je 0x40d624
call fcn.0042df10
cmp dword [eax], 0xd
jne 0x40d7b3
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x193
jmp 0x40d7ed
call fcn.0042df10
cmp dword [eax], 2
jne 0x40d7d6
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.Error:_mkcol__s_:__s
push 0x199
jmp 0x40d7ed
call ebx
push eax
call fcn.00433516
add esp, 4
push eax
push edi
push str.fopen__s_:__s
push 0x1f4
push esi
call fcn.004070a0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c62
mov esp, ebp
pop ebp
ret