Function at 0x422470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5204ed
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x464], ebx
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x460], ecx
mov ecx, 0x58c214
mov dword [ebp - 0x470], edi
call edx
add eax, 0x10
mov dword [ebp - 0x458], eax
mov esi, 1
mov dword [ebp - 4], esi
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x488]
push ecx
push str.timestamp
push edi
call fcn.004b67d0
add esp, 0xc
test al, al
je 0x42250d
mov edi, dword [ebp - 0x480]
mov esi, dword [ebp - 0x454]
jmp 0x42256c
push 0xc
call fcn.004f1c23
mov edi, eax
add esp, 4
mov dword [ebp - 0x454], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x42253f
push 0x53b692
mov dword [edi + 4], 0
mov dword [edi + 8], esi
call fcn.004efa50
mov dword [edi], eax
jmp 0x422541
xor edi, edi
mov byte [ebp - 4], 2
mov esi, edi
mov dword [ebp - 0x454], esi
test edi, edi
jne 0x42255b
push 0x8007000e
call fcn.004ef9b0
mov byte [ebp - 4], 4
mov ebx, 1
mov dword [ebp - 0x464], ebx
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x45c]
call fcn.004050e0
mov dword [ebp - 4], 6
test bl, 1
je 0x4225cf
and ebx, 0xfffffffe
mov dword [ebp - 0x464], ebx
test esi, esi
je 0x4225cf
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4225c5
mov eax, dword [esi]
test eax, eax
je 0x4225ac
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4225bc
push eax
call fcn.004f1ca3
add esp, 4
push esi
call fcn.004efd7c
add esp, 4
mov dword [ebp - 0x454], 0
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x4225dd
mov eax, dword [eax]
jmp 0x4225df
xor eax, eax
lea ecx, [ebp - 0x440]
push ecx
push eax
call fcn.0041eef0
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x438]
mov edx, dword [ebp - 0x440]
add esp, 8
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x430], edx
mov edx, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x430]
push ecx
mov dword [ebp - 0x424], edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x42265c
movzx edx, word [ebp - 0x422]
mov dword [ebp - 0x454], edx
fild dword [ebp - 0x454]
fdiv qword [0x53b720]
fadd qword [ebp - 0x46c]
fstp qword [ebp - 0x46c]
fld qword [ebp - 0x46c]
lea eax, [ebp - 0x450]
push eax
sub esp, 8
fstp qword [esp]
call fcn.00404c20
add esp, 0xc
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp - 0x450]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x478]
push 0xa
lea eax, [ebp - 0x420]
push eax
push ecx
call fcn.004f2dc8
lea eax, [ebp - 0x420]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4226b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x458]
call fcn.00401e30
push 1
push 0x53bf58
lea ecx, [ebp - 0x458]
call fcn.00401ed0
mov ecx, dword [ebp - 0x474]
push 0xa
lea eax, [ebp - 0x420]
push eax
push ecx
call fcn.004f2dc8
lea eax, [ebp - 0x420]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422705
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x458]
call fcn.00401ed0
push 4
push str..jpg
lea ecx, [ebp - 0x458]
call fcn.00401ed0
mov eax, dword [ebp - 0x460]
lea edx, [ebp - 0x218]
sub edx, eax
jmp 0x422750
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x422750
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
jmp 0x422770
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x422770
mov ecx, dword [0x53c930]
mov edx, dword [0x53c934]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [eax], ecx
mov ecx, dword [0x53c938]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x218]
push edx
mov dword [eax + 8], ecx
call ebx
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4227b0
mov eax, dword [0x53bb00]
mov dword [edi], eax
mov eax, 0x53c3e0
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4227d0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4227e6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x218]
push ecx
call ebx
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x422816
mov edx, dword [0x53bb00]
mov eax, dword [ebp - 0x460]
add eax, 0x410
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422837
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x422850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x422880
mov ecx, dword [0x53bb00]
mov eax, 0x53c3ac
mov dword [edi], ecx
mov edx, eax
jmp 0x4228a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4228a0
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4228b6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [ebp - 0x218]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call ebx
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4228e6
mov eax, dword [0x53bb00]
lea ecx, [ebp - 0x218]
push ecx
push 0
lea ecx, [ebp - 0x458]
mov dword [edi], eax
call fcn.0041fdd0
mov edi, dword [ebp - 0x458]
push ecx
mov esi, esp
add edi, 0xfffffff0
mov dword [ebp - 0x454], esp
push edi
mov dword [ebp - 0x468], esi
call fcn.00401500
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x470]
push edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x460]
call fcn.00421b30
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x45c]
test esi, esi
je 0x422999
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42298f
mov eax, dword [esi]
test eax, eax
je 0x422976
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x422986
push eax
call fcn.004f1ca3
add esp, 4
push esi
call fcn.004efd7c
add esp, 4
mov dword [ebp - 0x45c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x488]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4229ca
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 4