Function at 0x499360
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d802
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov byte [ebx], 0
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
xor edi, edi
call edx
add eax, 0x10
mov dword [ebx + 8], eax
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
mov dword [ebp - 4], edi
call edx
add eax, 0x10
mov dword [ebx + 0xc], eax
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebx + 0x10], eax
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov eax, dword [0x55381c]
push edi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00474130
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov esi, dword [ebp - 0x34]
mov ecx, 0x5515b0
mov byte [ebp - 4], 6
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
cmp esi, edi
jne 0x49944f
xor eax, eax
jmp 0x49945d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499454
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004048b0
mov byte [ebx + 0x2c], 0
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
mov byte [ebp - 4], 8
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.SetupType
push str.PATH
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00498630
test eax, eax
je 0x499a69
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebx - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x4994be
push 0x80070057
call fcn.00401000
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, esi
or eax, ecx
jge 0x4994db
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401a60
mov ebx, dword [ebp - 0x1c]
mov byte [edi + ebx], 0x68
cmp esi, dword [ebx - 8]
jg 0x4994b4
mov dword [ebx - 0xc], esi
push ebx
lea ecx, [ebp - 0x44]
mov byte [esi + ebx], 0
call fcn.0040eba0
mov eax, dword [eax + 4]
mov esi, dword [ebp - 0x10]
push 0
push 0
lea ecx, [ebp - 0x30]
mov dword [esi + 4], eax
call fcn.00474130
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
mov byte [ebp - 4], 0xa
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.Current
push str.PATH
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00498630
test eax, eax
jne 0x4995de
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499568
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
mov esi, vtable.IStringScanner.0
add eax, 0xfffffff0
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499593
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4995b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4995d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x38], esi
jmp 0x499f63
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00498f90
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [esi + 8]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 0xc
cmp eax, esi
je 0x499654
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499644
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499644
push eax
call fcn.004016d0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499636
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
add ecx, 0x10
mov dword [eax + 8], ecx
jmp 0x499654
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004048b0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49969a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.CDDrive
push str.PATH
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.00498630
test eax, eax
jne 0x49976f
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4996f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
mov esi, vtable.IStringScanner.0
add eax, 0xfffffff0
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499720
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4995d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x38], esi
jmp 0x499f63
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00498f90
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
mov esi, dword [edx + 0xc]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 0xe
cmp eax, esi
je 0x4997e4
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4997d4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4997d4
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4997c9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x10]
add ebx, 0x10
mov dword [eax + 0xc], ebx
jmp 0x4997e4
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004048b0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499807
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49982a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
push str.Save
push str.PATH
add ebx, 0x10
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.00498630
test eax, eax
jne 0x49985c
push eax
push 0x517abc
mov ecx, ebx
call fcn.004048b0
jmp 0x4998eb
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00498f90
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 0xf
cmp eax, esi
je 0x4998c8
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4998bc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4998bc
push eax
call fcn.004016d0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4998b2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x4998c8
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004048b0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4998eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
push str.Temporary
push str.PATH
add ebx, 0x14
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call fcn.00498630
test eax, eax
jne 0x49991d
push eax
push 0x517abc
mov ecx, ebx
call fcn.004048b0
jmp 0x4999ac
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00498f90
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 0x10
cmp eax, esi
je 0x499989
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x49997d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49997d
push eax
call fcn.004016d0
mov dword [ebp - 0x24], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499973
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x499989
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004048b0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4999ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push str.aspect
push str.PATH
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.00498630
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x4999fc
push 0x51f3e0
push esi
call fcn.004f5934
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x10]
sete dl
mov byte [eax + 0x2c], dl
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499a1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
push str.Library
push str.PATH
add esi, 0x18
push esi
lea ecx, [ebp - 0x14]
call fcn.00498630
test eax, eax
jne 0x499a46
push eax
push 0x517abc
mov ecx, esi
call fcn.004048b0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], vtable.IStringScanner.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x499b8a
push edi
push edi
lea ecx, [ebp - 0x30]
call fcn.00474130
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x12
mov dword [ebx + 4], edi
cmp edx, edi
jne 0x499a85
xor eax, eax
jmp 0x499a99
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499a90
sub eax, esi
push eax
push edx
lea ecx, [ebx + 0xc]
call fcn.004048b0
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 8]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x499afe
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499aef
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499aef
push eax
call fcn.004016d0
mov dword [ebp - 0x28], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499ae4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x10
mov dword [ebx + 8], ecx
jmp 0x499afc
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebx + 8]
call fcn.004048b0
xor edi, edi
push edi
lea esi, [ebx + 0x14]
push 0x517abc
mov ecx, esi
mov dword [ebp - 0x20], esi
call fcn.004048b0
mov ecx, dword [esi]
mov esi, dword [ebx + 0x10]
add ebx, 0x10
lea eax, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x18], ebx
cmp eax, esi
je 0x499b6c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499b60
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499b60
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499b56
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x499b6c
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004048b0
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], vtable.IStringScanner.0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499b96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx - 0xc]
add ebx, 8
mov dword [ebp - 0x24], ebx
test eax, eax
jle 0x499c08
dec eax
js 0x4994b4
cmp eax, dword [ecx - 0xc]
jg 0x4994b4
cmp byte [eax + ecx], 0x5c
je 0x499c08
mov eax, ecx
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x499bd5
push 0x80070057
call fcn.00401000
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x499bee
push esi
mov ecx, ebx
call fcn.00401a60
mov eax, dword [ebx]
mov byte [eax + edi], 0x5c
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x4994b4
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
mov byte [esi + edx], 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax - 0xc]
test eax, eax
jle 0x499c7b
dec eax
js 0x4994b4
mov ecx, dword [ebx + 0xc]
cmp eax, dword [ecx - 0xc]
jg 0x4994b4
cmp byte [ecx + eax], 0x5c
je 0x499c7b
mov eax, ecx
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x499c44
push 0x80070057
call fcn.00401000
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x499c5e
push esi
lea ecx, [ebx + 0xc]
call fcn.00401a60
mov eax, dword [ebx + 0xc]
mov byte [eax + edi], 0x5c
mov eax, dword [ebx + 0xc]
cmp esi, dword [eax - 8]
jg 0x4994b4
mov dword [eax - 0xc], esi
mov ecx, dword [ebx + 0xc]
mov byte [esi + ecx], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
push 0x517abc
push eax
call fcn.004f5934
add esp, 8
test eax, eax
sete al
test al, al
je 0x499d2f
mov edx, dword [ebp - 0x24]
push str.Save_
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00408a70
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 0x13
cmp eax, esi
je 0x499d0c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499cfc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499cfc
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499cf2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x499d09
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004048b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499d2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x499d9a
dec eax
js 0x4994b4
cmp eax, dword [ecx - 0xc]
jg 0x4994b4
cmp byte [eax + ecx], 0x5c
je 0x499d9a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x499d67
push 0x80070057
call fcn.00401000
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x499d80
push esi
mov ecx, ebx
call fcn.00401a60
mov eax, dword [ebx]
mov byte [eax + edi], 0x5c
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x4994b4
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
mov byte [esi + edx], 0
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0x517abc
push eax
call fcn.004f5934
add esp, 8
test eax, eax
sete al
test al, al
je 0x499e0e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov esi, dword [esi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x499e0e
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499e01
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499e01
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499df7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x499e0e
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004048b0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x18]
push 0x517abc
push eax
call fcn.004f5934
add esp, 8
test eax, eax
sete al
test al, al
je 0x499e85
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
mov esi, dword [ebx + 0x18]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x499e85
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x499e78
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x499e78
push eax
call fcn.004016d0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x499e6d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp - 0x10]
add ebx, 0x10
mov dword [eax + 0x18], ebx
jmp 0x499e85
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebx + 0x18]
call fcn.004048b0
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x499ef5
dec eax
js 0x4994b4
cmp eax, dword [ecx - 0xc]
jg 0x4994b4
cmp byte [ecx + eax], 0x5c
je 0x499ef5
mov eax, ecx
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x499ebe
push 0x80070057
call fcn.00401000
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x499ed8
push esi
lea ecx, [ebx + 0x14]
call fcn.00401a60
mov eax, dword [ebx + 0x14]
mov byte [eax + edi], 0x5c
mov eax, dword [ebx + 0x14]
cmp esi, dword [eax - 8]
jg 0x4994b4
mov dword [eax - 0xc], esi
mov edx, dword [ebx + 0x14]
mov byte [esi + edx], 0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x10]
push eax
mov ecx, esi
call fcn.004748c0
test eax, eax
jne 0x499f13
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [esi], 1
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499f39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x38], vtable.IStringScanner.0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499f86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret