Function at 0x40e010
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4463b7
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x45aee0]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45aee0]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4b8]
lea eax, [esp + 0x29c]
push eax
mov esi, ecx
push 0x44bb70
mov dword [esp + 0x2c], esi
call fcn.0040fa60
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x8890]
push ebp
push edx
lea eax, [esp + 0x2ac]
push eax
mov ecx, eax
push str._sTestFolder_u_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40e2f6
test byte [esp + 0x28], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
je 0x40e278
push str.Insert_Dir_into_list_:
call edi
push ebp
call edi
push 0x44bb10
call edi
push ebp
lea ecx, [esp + 0x18]
call fcn.0040c180
mov edi, dword [esi + 0x18]
mov edx, dword [edi + 4]
add esi, 4
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x4bc], 0
call fcn.0040d680
push 1
mov ecx, esi
mov ebx, eax
call fcn.004421c0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x4b0], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e135
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44bbac
lea ecx, [esp + 0x2a0]
push 0x104
push ecx
call fcn.0041e322
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x40e2f6
mov bl, 4
cmp word [esp + 0x78], 0x2e
je 0x40e257
push ebp
lea ecx, [esp + 0x20]
call fcn.0040c180
push 0x44bba8
push eax
lea ecx, [esp + 0x28]
mov esi, 1
push ecx
mov dword [esp + 0x4bc], esi
call fcn.0040d4c0
lea edx, [esp + 0x84]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x4c8], 2
call fcn.0040d4c0
add esp, 0x18
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x4b0], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x4b0], 5
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e20d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], esi
jle 0x40e227
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040aad0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
call fcn.0040e010
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x4b0], edi
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e170
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40e2f6
push str.Insert_File_into_list_:
call edi
push ebp
call edi
push 0x44bb10
call edi
mov edx, dword [esp + 0x48]
add dword [esi + 0x24], edx
push ebp
lea ecx, [esp + 0x1c]
call fcn.0040c180
mov edi, dword [esi + 0x18]
mov ecx, dword [edi + 4]
add esi, 4
lea eax, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x4bc], 6
call fcn.0040d680
push 1
mov ecx, esi
mov ebx, eax
call fcn.004421c0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
or edi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x4b0], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x40e2f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0041c2ed
add esp, 0x4a0
ret 4