Function at 0x402dc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417801
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x420024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push str.stdole2.tlb
mov dword [ebp - 0x24], 0
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
jns 0x402e29
push 0
push 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00401650
push 0x41f4b4
lea eax, [ebp - 0x50]
push eax
call fcn.00406964
push ebx
push str.Building_Library_with_path:__s_n
call fcn.004010f0
mov edi, ebx
add esp, 8
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x402e40
sub edi, ecx
lea ecx, [ebp - 0x2c]
push 0x41db20
call fcn.00401120
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004022a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00401400
mov esi, dword [ebp - 0x28]
or eax, 0xffffffff
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x402ed2
lock xadd dword [esi + 8], eax
dec eax
jne 0x402ec8
test esi, esi
je 0x402ec8
mov eax, dword [esi]
test eax, eax
je 0x402ea0
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402eb7
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
mov ecx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov dword [ebp - 0x28], 0
or eax, 0xffffffff
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x402f16
lock xadd dword [esi + 8], eax
dec eax
jne 0x402f16
mov eax, dword [esi]
test eax, eax
je 0x402ef4
push eax
call ecx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402f0b
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
xor ebx, ebx
test edi, edi
je 0x402fca
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x402f5c
push 0x41db24
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x403014
jmp 0x402f5e
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], esi
test esi, esi
je 0x403014
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x14]
call fcn.00401330
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x402fc1
mov eax, dword [esi]
test eax, eax
je 0x402f9f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x402fb6
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
inc ebx
cmp ebx, edi
jb 0x402f20
push 0x4181f0
push dword [ebp - 0x24]
push ecx
mov ebx, esp
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x403008
push str.IBadger
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00404400
mov dword [esi], eax
jmp 0x40300a
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebx], esi
test esi, esi
jne 0x40301e
push 0x8007000e
call fcn.004042c0
mov eax, dword [ebp - 0x14]
push ecx
mov esi, esp
mov dword [esi], eax
test eax, eax
je 0x40302e
lock inc dword [eax + 8]
mov edx, 0x41dc80
mov ecx, 0x41dca0
call fcn.00402820
add esp, 0x10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x403056
mov eax, dword [eax]
jmp 0x403058
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
test eax, eax
js 0x402e0e
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x4030ab
push str.output.tlb
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4030ad
push 0x8007000e
call fcn.004042c0
xor esi, esi
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x4030c2
push 0x8007000e
call fcn.004042c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.004022a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00401400
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403133
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x40312c
test ebx, ebx
je 0x40312c
mov eax, dword [ebx]
test eax, eax
je 0x40310a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x403121
push eax
call fcn.004045d6
add esp, 4
mov dword [ebx + 4], 0
push 0xc
push ebx
call fcn.00404736
add esp, 8
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0xf
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x403177
mov eax, dword [esi]
test eax, eax
je 0x403155
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40316c
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
push 0x41dc80
push dword [ebp - 0x20]
push ecx
mov ebx, esp
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x4031b5
push str.ITMediaControl
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.00404400
mov dword [esi], eax
jmp 0x4031b7
xor esi, esi
mov byte [ebp - 4], 0xf
mov dword [ebx], esi
test esi, esi
jne 0x4031cb
push 0x8007000e
call fcn.004042c0
mov eax, dword [ebp - 0x18]
push ecx
mov esi, esp
mov dword [esi], eax
test eax, eax
je 0x4031db
lock inc dword [eax + 8]
mov edx, 0x4207d0
mov ecx, 0x4207c0
call fcn.00402820
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x4031fc
lock inc dword [eax + 8]
lea ecx, [ebp - 0x40]
call fcn.00402ac0
add esp, 4
mov byte [ebp - 4], 0x11
xor ebx, ebx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub edx, ecx
mov eax, edx
sub eax, edi
je 0x403275
sub edx, edi
mov dword [ebp - 0x30], edx
xor esi, esi
mov byte [ebp - 0xd], 1
test edi, edi
je 0x403258
nop word [eax + eax]
movzx eax, byte [ebp - 0xd]
add ecx, esi
xor edx, edx
inc esi
cmp byte [ecx + ebx], 0x41
mov ecx, dword [ebp - 0x40]
cmove edx, eax
mov al, dl
mov byte [ebp - 0xd], al
cmp esi, edi
jb 0x403230
test al, al
jne 0x403258
inc ebx
cmp ebx, dword [ebp - 0x30]
jb 0x403220
jmp 0x403275
push ebx
push str.Found_TLB_name_at_offset__zu_n
call fcn.004010f0
mov eax, dword [ebp - 0x40]
push edi
push dword [ebp - 0x34]
add eax, ebx
push eax
call fcn.00416a20
add esp, 0x14
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0x12
test esi, esi
je 0x4032b5
push str.Windows
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4032b7
push 0x8007000e
call fcn.004042c0
xor esi, esi
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x4032cc
push 0x8007000e
call fcn.004042c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.004022a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x14
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.00401400
mov eax, dword [eax]
test eax, eax
je 0x4032f5
mov eax, dword [eax]
jmp 0x4032f7
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [ebp - 0x2c]
or ebx, 0xffffffff
test edi, edi
je 0x403354
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x40334d
test edi, edi
je 0x40334d
mov eax, dword [edi]
test eax, eax
je 0x40332b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x403342
push eax
call fcn.004045d6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x2c], 0
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4033a5
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x40339e
test edi, edi
je 0x40339e
mov eax, dword [edi]
test eax, eax
je 0x40337c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x403393
push eax
call fcn.004045d6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0x11
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4033e8
mov eax, dword [esi]
test eax, eax
je 0x4033c6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4033dd
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0x15
test esi, esi
je 0x403428
push str.WindowsSystem32
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x40342a
push 0x8007000e
call fcn.004042c0
xor esi, esi
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x40343f
push 0x8007000e
call fcn.004042c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x16
call fcn.004022a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x17
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00401400
mov eax, dword [eax]
test eax, eax
je 0x403468
mov eax, dword [eax]
jmp 0x40346a
xor eax, eax
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4034c4
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x4034bd
test edi, edi
je 0x4034bd
mov eax, dword [edi]
test eax, eax
je 0x40349b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4034b2
push eax
call fcn.004045d6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x30], 0
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x403515
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x40350e
test edi, edi
je 0x40350e
mov eax, dword [edi]
test eax, eax
je 0x4034ec
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x403503
push eax
call fcn.004045d6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 0x11
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403558
mov eax, dword [esi]
test eax, eax
je 0x403536
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40354d
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
push 0xc
call fcn.004046fe
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0x18
test esi, esi
je 0x403598
push str.Windows_system32_tapi3.dll
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x40359a
push 0x8007000e
call fcn.004042c0
xor esi, esi
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x4035af
push 0x8007000e
call fcn.004042c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x19
call fcn.004022a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1a
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401400
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x40361f
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x403618
test edi, edi
je 0x403618
mov eax, dword [edi]
test eax, eax
je 0x4035f6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40360d
push eax
call fcn.004045d6
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0x1d
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403662
mov eax, dword [esi]
test eax, eax
je 0x403640
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403657
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
sub esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.004040b0
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x403680
lock inc dword [eax + 8]
call fcn.00402bb0
mov esi, dword [ebp - 0x1c]
add esp, 0x10
test esi, esi
je 0x4036d9
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x4036d2
test esi, esi
je 0x4036d2
mov eax, dword [esi]
test eax, eax
je 0x4036b0
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4036c7
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x40373c
mov eax, dword [ebp - 0x38]
sub eax, ecx
cmp eax, 0x1000
jb 0x40371e
test cl, 0x1f
je 0x4036fa
call fcn.0040ae4a
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x403706
call fcn.0040ae4a
sub ecx, eax
cmp ecx, 4
jae 0x403712
call fcn.0040ae4a
cmp ecx, 0x23
jbe 0x40371c
call fcn.0040ae4a
mov ecx, eax
push ecx
call fcn.00404731
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x40378d
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x403786
test esi, esi
je 0x403786
mov eax, dword [esi]
test eax, eax
je 0x403764
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40377b
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40379e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x4037ed
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4037e6
test esi, esi
je 0x4037e6
mov eax, dword [esi]
test eax, eax
je 0x4037c4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4037db
push eax
call fcn.004045d6
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00404736
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403801
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret