Function at 0x4119b0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x460f70]
mov ecx, dword [0x460f74]
push ebx
push esi
xor esi, esi
push 0x38
lea edx, [ebp - 0x40]
push esi
push edx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x46d068
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
call fcn.0044ac4e
mov ebx, dword [edi + 0x1c]
add esp, 4
cmp ebx, esi
je 0x411c83
cmp dword [edi], 0
je 0x411c83
mov eax, dword [ebx + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
jne 0x411a80
mov edx, dword [ebx + 0x28]
lea ecx, [ebp - 0x298]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x411a5f
cmp ecx, 0xffffffff
jne 0x411a75
cmp dword [edi + 8], 0
je 0x411a75
mov eax, dword [ebx + 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x411a80
jmp 0x411c78
cmp eax, 0xffffffff
je 0x411c78
mov eax, ecx
test al, 0x10
je 0x411c11
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x411aa3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x29c], 0
mov ecx, dword [ebx + 0x28]
push ecx
call fcn.00449dae
add esp, 4
test eax, eax
jne 0x411afe
mov edx, dword [ebx + 0x28]
push edx
call fcn.00441b39
add esp, 4
test eax, eax
je 0x411afe
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x2b0]
push eax
push ecx
call fcn.00441bbe
fild qword [ebp - 0x2b0]
add esp, 8
fmul qword [str.333333]
call fcn.00453656
add dword [edi + 0x28], eax
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], edx
adc dword [edi + 0x2c], edx
jmp 0x411c78
push 0x28
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x411c83
mov edx, dword [edi]
cmp dword [edx], 0
je 0x411c83
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
push eax
mov dword [esi + 0x14], eax
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 1
mov dword [esi + 0x20], eax
push eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
lea ecx, [ebp - 0x2b4]
push ecx
push 0
push esi
push 0x4118b0
push 0
lea eax, [ebp - 0x2a0]
push 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
je 0x411bcf
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x2a0], 4
jl 0x411bea
jmp 0x411bb0
cmp dword [edi], 0
je 0x411c83
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x2a0], 4
jge 0x411bb0
jmp 0x411bea
mov eax, dword [edi + 8]
mov ecx, dword [edi]
push eax
push ecx
mov ecx, dword [ebx + 0x28]
lea edx, [esi + 0x20]
push edx
lea eax, [ebp - 0x48]
push eax
push ecx
call fcn.00411610
add esp, 0x14
cmp dword [ebp - 0x2a4], 0
jne 0x411c01
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a8], esi
jmp 0x411c78
mov edx, dword [ebp - 0x2a8]
mov dword [edx], esi
mov dword [ebp - 0x2a8], esi
jmp 0x411c78
cmp dword [ebp - 0x29c], 0
jne 0x411c43
mov ecx, dword [ebx + 0x28]
lea eax, [ebp - 0x298]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xffffffff
je 0x411c83
cmp dword [ebp - 0x298], 0xffffffff
je 0x411c83
test eax, eax
je 0x411c5a
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x29c], 0
mov ecx, dword [ebp - 0x278]
add dword [edi + 0x28], ecx
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x2ac], eax
adc dword [edi + 0x2c], eax
mov dword [ebp - 0x2b0], ecx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x411a1e
cmp dword [ebp - 0x2a0], 0
je 0x411ca4
lea esp, [esp]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x2a0], 0
jne 0x411c90
mov esi, dword [ebp - 0x2a4]
test esi, esi
je 0x411ce8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411cbc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x411cca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x20]
add dword [edi + 0x28], eax
mov ecx, dword [esi + 0x24]
push esi
adc dword [edi + 0x2c], ecx
mov ebx, dword [esi]
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov esi, ebx
test ebx, ebx
jne 0x411cae
push 0x46d068
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push 0x46d0f4
call fcn.004443e0
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret