Function at 0x526350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x38]
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [esp], ebx
mov dword [ebp - 0x3c], eax
call fcn.00629a30
mov eax, dword [ebp - 0x38]
sub esp, 4
mov edx, dword [eax + 4]
test edx, edx
je 0x5267c0
xor eax, eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov word [esp], ax
mov ecx, esi
call fcn.006660c0
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
jne 0x526810
cmp byte [ebp - 0x3c], 0
jne 0x526460
lea edi, [ebp - 0x30]
mov dword [esp], ebx
mov ecx, edi
call fcn.00629a30
lea eax, [ebp - 0x2c]
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp], eax
mov ebx, eax
mov dword [ebp - 0x40], eax
call fcn.0055d120
mov ecx, ebx
call fcn.00665e50
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
setne bl
mov edx, dword [eax]
test edx, edx
je 0x526742
cmp edx, 0xffffffff
je 0x526418
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
je 0x526742
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x526725
cmp edx, 0xffffffff
je 0x526437
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x526725
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx]
test ecx, ecx
je 0x52663e
cmp ecx, 0xffffffff
je 0x526456
lock sub dword [edx], 1
mov edx, dword [ebp - 0x38]
je 0x52663e
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x40], ebx
call fcn.00585990
lea eax, [ebp - 0x34]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00584870
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
mov edx, dword [eax]
test edx, edx
je 0x5266e0
cmp edx, 0xffffffff
je 0x5264a6
lock sub dword [eax], 1
je 0x5266e0
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
je 0x526708
cmp edx, 0xffffffff
je 0x5264c5
lock sub dword [eax], 1
mov eax, dword [ebp - 0x2c]
je 0x526708
mov dword [esp + 8], 1
mov dword [esp], 2
mov ecx, esi
mov dword [esp + 4], 0x745a67
call fcn.00663390
mov edx, dword [ebp - 0x38]
sub esp, 0xc
test al, al
mov ecx, dword [edx + 4]
je 0x526760
test ecx, ecx
jle 0x526540
xor ebx, ebx
jmp 0x526508
add ebx, 1
cmp ebx, dword [ecx + 4]
jge 0x526540
call fcn.005859b0
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + ebx*2]
add edx, dword [ecx + 0xc]
cmp word [edx], ax
je 0x526500
call fcn.005859b0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov ecx, esi
mov word [esp], ax
call fcn.006660c0
sub esp, 0xc
mov edi, eax
lea esi, [esi]
lea ebx, [edi + 1]
call fcn.005859b0
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov ecx, esi
mov word [esp], ax
call fcn.006660c0
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x526660
test ebx, ebx
jne 0x526575
mov edi, ebx
jmp 0x526540
mov edi, dword [ebp - 0x40]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, edi
call fcn.006653e0
lea eax, [ebp - 0x30]
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0055d120
lea ecx, [ebp - 0x30]
call fcn.00665e50
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx]
test ecx, ecx
je 0x526680
cmp ecx, 0xffffffff
je 0x5265db
lock sub dword [edx], 1
mov edx, dword [ebp - 0x30]
je 0x526680
test edi, edi
jne 0x5266a6
cmp eax, 0xb7
je 0x5265f3
cmp eax, 5
jne 0x526848
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
mov byte [ebp - 0x30], 0
call fcn.004a1120
test al, al
mov edx, dword [ebp - 0x2c]
je 0x526613
cmp byte [ebp - 0x30], 0
jne 0x5266a9
mov eax, dword [edx]
test eax, eax
je 0x526780
cmp eax, 0xffffffff
je 0x52662f
lock sub dword [edx], 1
mov edx, dword [ebp - 0x2c]
je 0x526780
mov edx, dword [ebp - 0x38]
xor ebx, ebx
mov ecx, dword [edx]
test ecx, ecx
jne 0x526444
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x38]
mov ebx, dword [edx + 4]
cmp ebx, edi
jne 0x52656d
movzx ebx, byte [ebp - 0x3c]
jmp 0x52643a
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
mov dword [ebp - 0x44], eax
call fcn.004a4c50
test edi, edi
mov eax, dword [ebp - 0x44]
je 0x5265e3
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
test eax, eax
je 0x5267a0
cmp eax, 0xffffffff
je 0x5266c5
lock sub dword [edx], 1
mov edx, dword [ebp - 0x2c]
je 0x5267a0
cmp ebx, 0xffffffff
jne 0x526571
mov edx, dword [ebp - 0x38]
movzx ebx, byte [ebp - 0x3c]
jmp 0x52643a
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
test edx, edx
jne 0x5264b3
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5264c5
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x526437
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x526418
cmp ecx, 2
jle 0x526540
mov eax, dword [edx + 0xc]
cmp word [edx + eax + 2], 0x3a
mov eax, 2
cmove edi, eax
jmp 0x526540
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
jmp 0x52662f
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
jmp 0x5266c5
lea eax, [ebp - 0x2c]
mov dword [esp + 4], str.Empty_filename_passed_to_function
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [esp], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x7459f0
call fcn.0072013c
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
mov edx, dword [ebp - 0x38]
xor ebx, ebx
jmp 0x52643a
lea eax, [ebp - 0x2c]
mov dword [esp + 4], str.Broken_filename_passed_to_function
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [esp], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x7459f0
call fcn.0072013c
jmp 0x5267f6
mov edx, dword [ebp - 0x2c]
jmp 0x526613