Function at 0x496740
Capabilities:
Create directory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6355e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6ce488]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004178d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push dword [ebp + 0xc]
call fcn.004178d0
mov byte [ebp - 4], 1
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x496d2f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov byte [ebp - 4], 2
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x496d39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x496d43
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov byte [ebp - 4], 4
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x496d4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
push 0x5c
push dword [ebp - 0x10]
call fcn.005fd3e1
mov ecx, dword [ebp - 0x10]
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x496961
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x496961
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00411ed0
mov byte [ebp - 4], 6
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x2c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x4968a9
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x28], eax
jl 0x49689d
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x49689d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401b80
mov dword [ebp - 0x1c], eax
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x496892
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x4968a9
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00401e40
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4968c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x34]
dec eax
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00411f40
mov byte [ebp - 4], 7
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x34], eax
cmp eax, ecx
je 0x496941
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x496932
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x496932
push dword [ebp - 0x34]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x49692a
mov edi, dword [ebp - 0x30]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
jmp 0x496941
push dword [edx - 0xc]
lea ecx, [ebp + 8]
push edx
call fcn.00401e40
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4969be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4969be
lea eax, [ecx - 0x10]
lea edx, [edi - 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
cmp eax, edx
je 0x4969be
cmp dword [edx + 0xc], 0
lea edi, [edx + 0xc]
jl 0x4969af
mov eax, dword [eax]
cmp eax, dword [edx]
jne 0x4969af
push dword [ebp - 0x34]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4969a7
mov edi, dword [ebp - 0x30]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
jmp 0x4969be
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00401e40
mov edi, dword [ebp + 8]
push 0x6a0860
lea edx, [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.00411d40
add esp, 4
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x18]
push eax
add edx, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.00411e10
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [esi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x34], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x38], eax
cmp eax, ecx
je 0x496a4d
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x496a3e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x496a3e
push dword [ebp - 0x38]
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x496a36
mov esi, dword [ebp - 0x34]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
jmp 0x496a4d
push dword [edx - 0xc]
lea ecx, [ebp + 0xc]
push edx
call fcn.00401e40
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x496d57
cmp eax, ecx
jg 0x496d57
cmp word [esi + eax*2], 0x5c
je 0x496aae
lea eax, [ecx - 1]
test eax, eax
js 0x496d57
cmp eax, ecx
jg 0x496d57
cmp word [esi + eax*2], 0x2f
je 0x496aae
push ecx
lea ecx, [ebp + 0xc]
call fcn.00486450
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.00411e10
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x496b2e
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x34], eax
jl 0x496b22
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x496b22
mov eax, dword [ebp - 0x38]
push eax
call fcn.00401b80
mov dword [ebp - 0x38], eax
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x496b17
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x496b2e
push dword [edx - 0xc]
lea ecx, [ebp - 0x14]
push edx
call fcn.00401e40
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496b4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi - 0x10]
push eax
mov dword [ebp - 0x38], eax
call fcn.00401b80
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push 0
push esi
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x496b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x496b88
mov byte [ebp - 4], 8
lea edx, [esi - 0x10]
jmp 0x496bb6
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x34], esi
call fcn.00401b80
add esp, 4
add eax, 0x10
mov dword [esi], eax
push reloc.WS2_32.dll_htonl
call fcn.00495940
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496bca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
sub esp, 8
push 0
push ecx
push esi
push dword [ebp - 0x24]
call fcn.00495870
test eax, eax
jne 0x496c47
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x496d61
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.CreateLink_failed:_d
push eax
call fcn.00402970
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 8
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496c3b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
jmp 0x496c4e
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496c6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x496c87
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov eax, ebx
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496ca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496cc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x496cdb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496cf9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x496d18
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
push 0x80004005
call fcn.00401f90
push 0x80070057
call fcn.00401f90
push 0x80004005
call fcn.00401f90
int3