Function at 0x510612
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x6a8aa1
call fcn.00640244
sub esp, 0x30
cmp byte [0x7ad2ad], 0
push edi
mov edi, ecx
jne 0x510636
xor eax, eax
jmp 0x51085c
lea eax, [ebp + 0x18]
push eax
call fcn.0048faf6
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x51064b
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.00461022
mov bl, al
lea ecx, [ebp + 0x18]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.004281f2
add bl, 1
je 0x5106b4
lea eax, [ebp + 0x18]
push eax
call fcn.0048faf6
cmp dword [eax + 0x14], 8
jb 0x51067f
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor ebx, ebx
lea ecx, [ebp + 0x18]
push 0
inc ebx
mov esi, eax
push ebx
call fcn.004281f2
test esi, esi
jne 0x5106b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x5106b7
test eax, eax
je 0x5106b7
xor eax, eax
jmp 0x51085a
xor ebx, ebx
inc ebx
mov byte [ebp + 0x5f], bl
call fcn.00478821
cmp byte [ebp + 0x68], 0
mov eax, dword [0x7b043c]
mov ecx, dword [0x7b0438]
mov dword [ebp - 4], ebx
jne 0x5106ed
cmp byte [ebp + 0x6c], 0
jne 0x5106ed
cmp eax, dword [edi + 0x28]
jg 0x5106ed
jl 0x5106e5
cmp ecx, dword [edi + 0x24]
jae 0x5106ed
push 2
pop ebx
jmp 0x51084c
add ecx, 0x258
mov dword [edi + 0x24], ecx
lea ecx, [ebp + 0x30]
adc eax, 0
mov dword [edi + 0x28], eax
call fcn.00429ae5
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
call fcn.00548f08
mov byte [ebp + 0x5f], 0
call fcn.00478862
push str.global_resume.dat
lea ecx, [ebp + 0x18]
call fcn.00429973
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0050ff77
push 0
push ebx
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 6
call fcn.004281f2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.005105a9
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x51075f
mov byte [ebp + 0x6f], bl
mov byte [ebp + 0x5f], bl
call fcn.00478821
mov eax, dword [0x7b1888]
mov edi, 0x6cc3c8
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x510822
lea ecx, [ebp + 0x44]
call fcn.00429ae5
mov esi, dword [esi + 0x24]
mov ecx, esi
mov byte [ebp - 4], 7
mov eax, dword [esi]
call dword [eax + 0x34]
push eax
lea eax, [ebp - 0x3c]
push str._H.dat
push eax
call fcn.004654e1
add esp, 0xc
push eax
lea eax, [ebp]
mov byte [ebp - 4], 8
push eax
call fcn.0050ff77
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004281f2
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004b42e7
lea eax, [ebp]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.005105a9
test eax, eax
jne 0x5107e5
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045f1eb
push 0
push ebx
lea ecx, [ebp]
call fcn.004281f2
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
mov dword [ebp + 0x44], edi
call fcn.0045dfda
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.0058d49a
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x7b1888]
jne 0x51077e
xor ebx, ebx
lea ecx, [ebp - 0x24]
cmp byte [ebp + 0x6f], bl
push 0
push 1
sete bl
call fcn.004281f2
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xc
mov dword [ebp + 0x30], edi
call fcn.0045dfda
mov dword [ebp + 0x30], 0x6c1024
mov dword [ebp - 4], 0xd
call fcn.00478862
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
lea esp, [ebp + 0x60]
pop ebp
ret 8