Function at 0x489700
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x5c
mov eax, 0x66fb1d
call fcn.006313fc
sub esp, 0x30
cmp byte [0x75fda1], 0
jne 0x489721
xor eax, eax
jmp 0x489976
lea eax, [ebp + 0x2c]
push eax
call fcn.0048c2d8
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x489736
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.0045e908
mov bl, al
lea ecx, [ebp + 0x2c]
neg bl
push 0
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push 1
call fcn.0042341c
inc bl
je 0x48979e
lea eax, [ebp + 0x2c]
push eax
call fcn.0048c2d8
cmp dword [eax + 0x14], 8
jb 0x489769
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor ebx, ebx
lea ecx, [ebp + 0x2c]
push 0
inc ebx
mov esi, eax
push ebx
call fcn.0042341c
test esi, esi
jne 0x4897a1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4897a1
test eax, eax
je 0x4897a1
xor eax, eax
jmp 0x489974
xor ebx, ebx
inc ebx
cmp byte [ebp + 0x68], 0
mov eax, dword [0x762f24]
mov ecx, dword [0x762f20]
mov edx, dword [0x7640c0]
jne 0x4897d2
cmp byte [ebp + 0x6c], 0
jne 0x4897e4
cmp eax, dword [0x764194]
jg 0x4897d8
jl 0x4897dc
cmp ecx, dword [0x764190]
jae 0x4897d8
jmp 0x4897dc
cmp byte [ebp + 0x6c], 0
jne 0x4897e4
test edx, edx
je 0x4897e4
push 2
pop eax
jmp 0x489974
add ecx, 0x258
mov dword [0x764190], ecx
adc eax, 0
mov dword [0x764194], eax
test edx, edx
je 0x48980d
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [0x7640c0], 0
jne 0x4897fc
lea ecx, [ebp + 0x18]
call fcn.00424b8a
mov dword [ebp - 4], ebx
mov byte [ebp + 0x6f], bl
call fcn.00475044
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.004fb460
mov byte [ebp - 4], bl
call fcn.00475085
push str.global_resume.dat
lea ecx, [ebp + 0x2c]
call fcn.004249e7
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp]
push eax
call fcn.0048c2f6
push 0
push ebx
lea ecx, [ebp + 0x2c]
mov byte [ebp - 4], 5
call fcn.0042341c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0048d646
mov byte [ebp + 0x6f], 0
test eax, eax
jne 0x48987a
mov byte [ebp + 0x6f], bl
push edi
mov byte [ebp + 0x5f], bl
call fcn.00475044
mov eax, dword [0x7641f4]
mov edi, 0x689888
mov byte [ebp - 4], 6
mov esi, dword [eax]
mov dword [ebp + 0x58], esi
cmp esi, eax
je 0x489942
lea ecx, [ebp + 0x44]
call fcn.00424b8a
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.0047224d
add esp, 0xc
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 8
push eax
call fcn.0048c2f6
push 0
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0042341c
push dword [ebp + 0x68]
lea eax, [ebp + 0x44]
mov ecx, esi
push eax
call fcn.004af7ea
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0048d646
test eax, eax
jne 0x489905
mov byte [ebp + 0x6f], bl
lea ecx, [ebp + 0x44]
call fcn.0045ca92
push 0
push ebx
lea ecx, [ebp - 0x24]
call fcn.0042341c
mov dword [ebp + 0x44], edi
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0xb
call fcn.0045b86a
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 6
call fcn.0045d8b6
mov esi, dword [ebp + 0x58]
cmp esi, dword [0x7641f4]
jne 0x48989e
xor ebx, ebx
mov byte [ebp - 4], 5
cmp byte [ebp + 0x6f], bl
sete bl
call fcn.00475085
push 0
push 1
lea ecx, [ebp]
call fcn.0042341c
mov dword [ebp + 0x18], edi
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xc
call fcn.0045b86a
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x60]
pop ebp
ret 8