Function at 0x10057630
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a197d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100ef034]
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 ebx, edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
test edi, edi
je 0x100576d6
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
mov edx, str.TempFolder
call fcn.10055c90
mov esi, dword [ebp - 0x44]
add esp, 4
test esi, esi
jne 0x1005769a
xor ecx, ecx
jmp 0x100576af
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100576a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.1003f950
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x10057746
lea ecx, [ebp - 0x40]
call fcn.1003ae00
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10047330
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 8
jb 0x10057706
mov edx, dword [edx]
test edx, edx
jne 0x1005770e
xor ecx, ecx
jmp 0x10057722
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057713
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.1003f950
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10038340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10038340
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x100578fc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 6
test edi, edi
je 0x100577d6
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x50]
push eax
mov edx, 0x100ca428
mov ecx, edi
call fcn.10055c90
mov esi, dword [ebp - 0x4c]
add esp, 4
test esi, esi
jne 0x1005779b
xor ecx, ecx
jmp 0x100577af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100577a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.1003f950
mov byte [ebp - 4], 6
push esi
call fcn.1007686c
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
jmp 0x10057827
mov edx, dword [ebp - 0x4c]
lea edi, [esi - 0x10]
mov edx, dword [edx]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x1005782a
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x1005781b
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x1005781b
call fcn.10040870
mov dword [ebp - 0x4c], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10057813
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
jmp 0x1005782a
push dword [edx - 0xc]
lea ecx, [ebp - 0x44]
push edx
call fcn.1003f950
mov esi, dword [ebp - 0x44]
push 1
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
call fcn.10040a00
mov byte [ebp - 4], 8
mov ecx, 0x100c8670
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10057868
test dx, dx
je 0x10057864
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10057868
add eax, 4
add ecx, 4
test dx, dx
jne 0x10057842
xor edi, edi
jmp 0x1005786d
sbb edi, edi
or edi, 1
mov byte [ebp - 4], 6
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005788c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1005789e
push 1
push 0x100c8670
mov ecx, ebx
call fcn.1003f390
push 7
push str.AI_WSP_
mov ecx, ebx
call fcn.1003f390
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.1003f390
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100578e0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.1007685e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3