Function at 0x4624b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ab97
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x718924]
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 edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462504
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
mov ebx, 2
push eax
jne 0x46256e
lea ecx, [ebp - 0x40]
call fcn.00451440
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], ecx
jmp 0x462afe
lea ecx, [ebp - 0x70]
call fcn.00451440
push 0x2f
push 0x5c
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0046f300
add esp, 0x10
lea ecx, [ebp - 0x70]
push eax
call fcn.00449600
lea ecx, [ebp - 0xa0]
call fcn.00448fb0
mov eax, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mul ebx
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb4], 0
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cba04
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0x5c], 8
lea ebx, [ebp - 0x70]
cmovae ebx, dword [ebp - 0x70]
xor edx, edx
xor edi, edi
mov dword [ebp - 0xa4], ebx
or esi, 0xffffffff
mov dword [ebp - 0xa8], edi
cmp dword [ebp - 0xb0], edx
jle 0x4628d0
jmp 0x462610
movzx eax, word [ebx + edx*2]
cmp eax, 0x2f
jne 0x462826
mov ecx, dword [ebp - 0xb0]
dec ecx
cmp edx, ecx
jge 0x462642
lea eax, [edx + 1]
lea eax, [ebx + eax*2]
mov edi, edi
cmp word [eax], 0x2f
jne 0x462642
test edx, edx
je 0x462642
inc edx
add eax, 2
cmp edx, ecx
jl 0x462630
xor bl, bl
cmp edx, ecx
jge 0x4627be
mov eax, dword [ebp - 0xa4]
cmp word [eax + edx*2 + 2], 0x2e
jne 0x4627be
mov eax, dword [ebp - 0xb0]
mov edi, 1
mov ecx, dword [ebp - 0xa4]
add eax, 0xfffffffe
cmp edx, eax
jge 0x462684
cmp word [ecx + edx*2 + 4], 0x2e
mov eax, 2
cmove edi, eax
mov eax, dword [ebp - 0xb0]
sub eax, edi
dec eax
cmp edx, eax
jne 0x4626b2
cmp edi, 1
je 0x4628d4
cmp dword [ebp - 0xb4], 0
jne 0x462888
mov edi, dword [ebp - 0xa8]
jmp 0x462801
lea eax, [edi + edx]
cmp word [ecx + eax*2 + 2], 0x2f
jne 0x4627b6
cmp edi, 2
jne 0x462796
cmp dword [ebp - 0xb4], 0
je 0x46275b
mov ecx, dword [ebp - 0xa8]
cmp esi, 0xffffffff
je 0x4626eb
mov eax, ecx
sub eax, esi
cmp eax, 1
jne 0x46272b
cmp esi, 0xffffffff
mov eax, ecx
cmovne eax, esi
sub eax, 1
js 0x4627a4
lea esp, [esp]
mov ecx, dword [ebp - 0xb8]
cmp word [ecx + eax*2], 0x2f
mov ecx, dword [ebp - 0xa8]
je 0x462729
sub eax, 1
jns 0x462700
lea eax, [edi + edx]
test bl, bl
mov edi, ecx
cmove eax, edx
mov edx, eax
jmp 0x4627d5
mov esi, eax
dec dword [ebp - 0xb4]
mov eax, esi
sub eax, ecx
mov dword [ebp - 0xa8], esi
add dword [ebp - 0xac], eax
mov bl, 1
or esi, 0xffffffff
lea eax, [edi + edx]
mov edi, dword [ebp - 0xa8]
test bl, bl
cmove eax, edx
mov edx, eax
jmp 0x4627d5
test edx, edx
jle 0x4627a4
cmp word [ecx + edx*2 - 2], 0x2e
je 0x4627a4
xor ecx, ecx
mov bl, 1
test esi, esi
cmovg ecx, esi
inc edx
mov eax, ecx
or esi, 0xffffffff
sub eax, dword [ebp - 0xa8]
add dword [ebp - 0xac], eax
test bl, bl
lea eax, [edi + edx]
mov dword [ebp - 0xa8], ecx
cmove eax, edx
mov edi, ecx
mov edx, eax
jmp 0x4627d5
cmp edi, 1
movzx ebx, bl
mov eax, 1
cmove ebx, eax
lea eax, [edi + edx]
test bl, bl
mov edi, dword [ebp - 0xa8]
cmove eax, edx
mov edx, eax
jmp 0x4627d5
mov edi, dword [ebp - 0xa8]
jmp 0x4627fb
cmp esi, 0xffffffff
je 0x4627fb
mov eax, edi
sub eax, esi
cmp eax, 1
jne 0x4627f7
cmp edi, 2
setg bl
or esi, 0xffffffff
test bl, bl
je 0x462801
mov ebx, dword [ebp - 0xa4]
inc edx
cmp edx, dword [ebp - 0xb0]
jge 0x4628d4
mov edi, dword [ebp - 0xa8]
jmp 0x462610
cmp edx, ecx
je 0x4627d9
inc dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xa4]
mov esi, edi
mov ecx, dword [ebp - 0xb8]
mov ax, word [ebx + edx*2]
mov word [ecx + edi*2], ax
inc edi
inc dword [ebp - 0xac]
mov dword [ebp - 0xa8], edi
jmp 0x4627df
test edx, edx
jne 0x462809
cmp eax, 0x2e
jne 0x462809
cmp word [ebx + 2], 0x2e
mov ecx, 2
mov eax, 1
cmove eax, ecx
mov ecx, dword [ebp - 0xb0]
cmp ecx, eax
jl 0x462809
cmp word [ebx + eax*2], 0x2f
jne 0x462809
cmp eax, 1
jne 0x462809
lea edi, [ecx - 1]
mov edx, eax
cmp edi, 2
jle 0x4627df
lea ecx, [eax + 1]
lea eax, [ebx + 4]
jmp 0x462870
cmp word [eax], 0x2f
jne 0x4627df
inc ecx
inc edx
add eax, 2
cmp ecx, edi
jl 0x462870
jmp 0x4627df
cmp esi, 0xffffffff
jne 0x4628bf
mov eax, dword [ebp - 0xa8]
add eax, esi
js 0x4628bf
mov ecx, dword [ebp - 0xb8]
lea ecx, [ecx]
cmp word [ecx + eax*2], 0x2f
je 0x4628bd
sub eax, 1
jns 0x4628a0
mov eax, dword [ebp - 0xac]
sub esi, dword [ebp - 0xa8]
inc eax
add eax, esi
jmp 0x4628da
mov esi, eax
mov eax, dword [ebp - 0xac]
sub esi, dword [ebp - 0xa8]
inc eax
add eax, esi
jmp 0x4628da
xor eax, eax
jmp 0x4628da
mov eax, dword [ebp - 0xac]
cmp eax, dword [ebp - 0xb0]
jne 0x4628f7
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x58]
call fcn.00451440
mov ecx, eax
mov ebx, 2
jmp 0x46292b
xor ecx, ecx
mov dword [ebp - 0x78], 0
push eax
push dword [ebp - 0xb8]
mov word [ebp - 0x88], cx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
call fcn.0044e920
lea ecx, [ebp - 0x88]
mov ebx, 4
mov eax, dword [ecx]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 3
test bl, 4
je 0x4629b3
mov edx, dword [ebp - 0x74]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x4629b3
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4629a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463010
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov byte [ebp - 4], 4
test bl, 2
je 0x462a0d
mov edx, dword [ebp - 0x44]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x4629f9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4629ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463010
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp esi, 1
jbe 0x462a88
lea edx, [esi - 1]
cmp esi, edx
jbe 0x46300b
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x40]
cmp edi, 8
cmovae eax, ecx
cmp word [eax + edx*2], 0x2f
jne 0x462a88
cmp esi, 3
jne 0x462a4a
cmp edi, 8
lea eax, [ebp - 0x40]
cmovae eax, ecx
cmp word [eax + 2], 0x3a
je 0x462a88
jmp 0x462a4f
cmp esi, 1
jb 0x462a67
cmp edi, 8
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x40]
cmovae eax, ecx
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x462a79
mov eax, 1
lea ecx, [ebp - 0x40]
push 0
sub eax, esi
push eax
call fcn.004667d0
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0xa4], eax
push dword [ebp - 0xb8]
call fcn.004cb4e9
mov eax, dword [ebp - 0x3c]
or ebx, 1
mov edx, dword [ebp - 0x5c]
add esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x462af8
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462aee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463010
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov ebx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x462b38
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462b2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463029
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xac]
push 0x5c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push 0x2f
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x28], ebx
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.0046f300
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x462c01
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x462bb7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462bad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463015
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x462c3b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462c31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463015
push edx
push ecx
call fcn.004cb4db
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00463e20
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x462ce4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x462c9a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462c90
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46301a
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x462d1e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462d14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46301a
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 7
or edi, 0xffffffff
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x18], 2
lea eax, [ebp - 0x28]
mov esi, 2
cmovb esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0xb0], eax
cmp esi, 7
ja 0x462d73
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004e2b40
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
jmp 0x462dd8
cmp esi, 0x7ffffffe
ja 0x46301f
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x462d93
mov ebx, 0x7ffffffe
jmp 0x462d9d
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044e740
mov dword [ebp - 0x30], esi
add esi, esi
push esi
push dword [ebp - 0xb0]
mov dword [ebp - 0xa4], eax
push eax
mov dword [ebp - 0x2c], ebx
call fcn.004e25c0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, eax
mov dword [ebp - 0x40], esi
or dword [ebp - 0xb8], 8
lea eax, [ebp - 0x40]
push 0x67b358
push eax
call fcn.0044f420
add esp, 8
mov byte [ebp - 0xb9], al
cmp ebx, 8
jb 0x462e30
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x462e20
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463029
push ebx
push esi
call fcn.004cb4db
mov al, byte [ebp - 0xb9]
add esp, 8
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
test al, al
je 0x462e74
xor ecx, ecx
test esi, esi
je 0x462e64
mov edx, dword [ebp - 0x14]
cmp esi, ecx
jbe 0x46300b
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, ebx
cmp word [eax + ecx*2], 0x5c
jne 0x462e62
inc ecx
cmp esi, ecx
ja 0x462e4b
jmp 0x462e64
mov edi, ecx
push edi
push str.SMD
lea ecx, [ebp - 0x28]
call fcn.00466a30
mov edi, eax
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
inc edi
cmp edx, 8
cmovae ecx, ebx
cmp edi, esi
jae 0x462ea2
mov eax, esi
sub eax, edi
lea edi, [ecx + edi*2]
je 0x462ea2
mov edi, edi
cmp word [edi], 0x5c
je 0x462f5b
add edi, 2
sub eax, 1
jne 0x462e90
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x462fbb
xor eax, eax
mov dword [ebp - 0x30], 0
cmp esi, edi
mov word [ebp - 0x40], ax
mov ecx, edi
mov dword [ebp - 0x2c], 7
cmovb ecx, esi
lea eax, [ebp - 0x28]
cmp edx, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x40]
push eax
call fcn.0044e920
or dword [ebp - 0xb8], 0x10
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462efe
test al, 0x10
jne 0x462f16
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x462f64
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x462f50
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462f46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463024
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
jmp 0x462e74
sub edi, ecx
sar edi, 1
jmp 0x462ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x462f79
movzx esi, si
or esi, 0x80070000
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x462fb3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462fa9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463024
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
jmp 0x462fbd
xor esi, esi
cmp edx, 8
jb 0x462fed
lea edx, [edx*2 + 2]
mov eax, ebx
cmp edx, 0x1000
jb 0x462fe3
mov ebx, dword [ebx - 4]
add edx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463029
push edx
push ebx
call fcn.004cb4db
add esp, 8
mov eax, esi
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.0044e290
call fcn.004e6589
call fcn.004e6589
call fcn.004e6589
call fcn.0044e270
call fcn.004e6589
call fcn.004e6589
int3