Function at 0x40a6eb
Capabilities:
Create thread
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x8f0
mov dword [ebp - 0x14], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
lea eax, [ebp - 0x420]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2f
je 0x40a744
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43fe17
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
jmp 0x40a75f
mov eax, dword [ebp + 0x10]
mov byte [eax], 0x5c
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, dword [ebp - 0xc]
jbe 0x40a827
mov eax, dword [ebp - 0xc]
lea ebx, [eax + 2]
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp ebx, eax
jae 0x40a7e6
lea edx, [ebp - 0x31c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x25
jne 0x40a7e6
mov eax, dword [ebp - 0xc]
add eax, 1
movzx eax, byte [ebp + eax - 0x31c]
cmp al, 0x32
jne 0x40a7e6
mov eax, dword [ebp - 0xc]
add eax, 2
movzx eax, byte [ebp + eax - 0x31c]
cmp al, 0x30
jne 0x40a7e6
lea edx, [ebp - 0x420]
mov eax, dword [ebp - 0x10]
add eax, edx
mov byte [eax], 0x20
add dword [ebp - 0xc], 2
jmp 0x40a81a
lea edx, [ebp - 0x31c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
cmp al, 0x2f
je 0x40a808
lea edx, [ebp - 0x31c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
jmp 0x40a80d
mov eax, 0x5c
lea ecx, [ebp - 0x420]
mov edx, dword [ebp - 0x10]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
jmp 0x40a76d
lea eax, [ebp - 0x420]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43fe1b
lea eax, [ebp - 0x524]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0x43fe20
lea eax, [ebp - 0x524]
mov dword [esp], eax
call sub.msvcrt.dll_strtok
lea eax, [ebp - 0x524]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call eax
sub esp, 4
cmp eax, 0x10
je 0x40a883
cmp eax, 0xffffffff
je 0x40a88c
jmp 0x40a8a7
mov dword [ebp - 0x14], 1
jmp 0x40a8a7
mov edx, dword [0x44ee04]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x40ab50
mov eax, dword [ebp - 0x10]
sub eax, 1
movzx eax, byte [ebp + eax - 0x420]
cmp al, 0x5c
jne 0x40a8c0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8d8], eax
mov dword [ebp - 0x52c], 0
cmp dword [ebp - 0x14], 0
je 0x40a98d
cmp dword [ebp + 0x14], 0
je 0x40a972
lea eax, [ebp - 0x524]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x524]
add eax, edx
mov word [eax], 0x2a
lea eax, [ebp - 0x524]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8d8]
add eax, 0x84
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x420]
mov dword [esp], eax
call fcn.0040b7bb
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8d8]
add eax, 0x188
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [ebp - 0x530], 1
mov dword [ebp - 0x544], 0xffffffff
jmp 0x40aa2e
mov edx, dword [0x44ee04]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 0
jmp 0x40ab50
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
lea eax, [ebp - 0x524]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40aa2e
lea eax, [ebp - 0x524]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8d8]
add eax, 0x84
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [ebp - 0x530], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [ebp - 0x544], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._HTTPD_:_Worker_thread_of_server_thread:__d.
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], 0
mov dword [esp + 4], 3
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.0042a908
mov dword [ebp - 0x540], eax
mov eax, dword [ebp - 0x540]
imul eax, eax, 0x234
lea edx, [eax + 0x44fe64]
mov eax, dword [ebp + 0x18]
mov dword [edx], eax
mov ebx, dword [ebp - 0x540]
lea eax, [ebp - 0x528]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x8d8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40a42e
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov edx, eax
imul eax, ebx, 0x234
add eax, 0x44fe74
mov dword [eax], edx
imul eax, ebx, 0x234
add eax, 0x44fe74
mov eax, dword [eax]
test eax, eax
setne al
test al, al
je 0x40ab0b
mov eax, dword [ebp - 0x52c]
test eax, eax
jne 0x40ab4b
mov dword [esp], 5
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x40aaee
mov edx, dword [0x44ee04]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], eax
mov dword [esp + 4], str._HTTPD_:_Failed_to_start_worker_thread__error:___d_.
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.00402bae
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret