Function at 0x420520
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ff43
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
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 eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x58c214
mov dword [ebp - 0x230], esi
call edx
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
lea edx, [ebp - 0x248]
mov word [ebp - 0x21a], ax
xor ecx, ecx
push edx
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x21e], ecx
mov word [ebp - 0x220], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 8
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x240]
push 8
push edx
call fcn.004f0e71
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
push eax
push ecx
lea edx, [ebp - 0x22c]
push str._I64u
push edx
call fcn.00401f60
lea edx, [ebp - 0x218]
add esp, 0x20
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4205f1
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x420610
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 0x420650
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 0x420670
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x420686
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 0x4206b6
mov edx, dword [0x53bb00]
mov eax, 0x53c3c4
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4206d1
lea edi, [ebp - 0x218]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4206f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4206f0
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 0x420720
mov ecx, dword [0x53bb00]
mov eax, dword [ebp - 0x22c]
mov dword [edi], ecx
mov esi, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420740
lea edi, [ebp - 0x218]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x420756
mov ecx, eax
shr ecx, 2
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
mov eax, dword [0x58c214]
mov edx, dword [eax + 0xc]
mov ecx, 0x58c214
call edx
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebx + 0x65c]
push 0x53c3ec
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x234]
push str._s_s._s
push edx
call fcn.00401f60
mov esi, dword [ebp - 0x234]
add esp, 0x14
push 0
push ecx
mov edi, esp
add esi, 0xfffffff0
mov dword [ebp - 0x230], esp
push esi
mov dword [ebp - 0x238], edi
call fcn.00401500
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x238], esp
mov dword [ecx], eax
test eax, eax
je 0x420806
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.00420250
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420832
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42085b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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