Function at 0x410a3a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4b7f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
push 2
mov dword [ebp - 0x43c], eax
mov eax, dword [esi + 0x64]
pop edi
mov ebx, edx
cmp eax, edi
je 0x410d0a
cmp eax, 3
je 0x410d0a
cmp eax, 6
jne 0x410aba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.ThunderPlatform
push dword [ebp - 0x43c]
mov dword [esi + 0x160], eax
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
call esi
test eax, eax
je 0x410ab2
push str.Thunder
push dword [ebp - 0x43c]
call esi
xor eax, eax
inc eax
jmp 0x410d0c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0046cbb0
add esp, 0xc
push dword [ebp - 0x43c]
lea eax, [ebp - 0x418]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [esi + 0xdc], edi
call fcn.00410feb
test eax, eax
je 0x410ab2
push dword [ebp - 0x438]
lea ecx, [esi + 0x68]
mov dword [esi + 0x64], edi
call fcn.00401a34
lea edi, [esi + 0x84]
push ebx
mov ecx, edi
call fcn.00401a34
push dword [ebp - 0x43c]
lea ebx, [esi + 0xa0]
mov ecx, ebx
call fcn.00401a34
mov eax, dword [esi + 0x98]
dec eax
push eax
mov ecx, edi
call fcn.00412486
cmp word [eax], 0x5c
je 0x410b4d
push 0x5c
push 1
mov ecx, edi
call fcn.004082af
push 0x4a87b0
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.0040f161
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0046cbb0
mov ecx, dword [ebp - 0x430]
add esp, 0xc
cmp dword [ebp - 0x41c], 8
jae 0x410b95
lea ecx, [ebp - 0x430]
cmp dword [edi + 0x18], 8
jb 0x410ba0
mov eax, dword [edi + 4]
jmp 0x410ba3
lea eax, [edi + 4]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or dword [ebp - 0x440], 0xffffffff
cmp dword [esi + 0xb4], 0
jbe 0x410c2e
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410c2e
cmp dword [ebx + 0x18], 8
jb 0x410bde
mov ebx, dword [ebx + 4]
jmp 0x410be1
add ebx, 4
cmp dword [edi + 0x18], 8
jb 0x410bec
mov edi, dword [edi + 4]
jmp 0x410bef
add edi, 4
cmp dword [esi + 0x80], 8
jb 0x410bfd
mov eax, dword [esi + 0x6c]
jmp 0x410c00
lea eax, [esi + 0x6c]
lea ecx, [ebp - 0x440]
push ecx
push ebx
push edi
push eax
call fcn.0040fec5
mov ecx, eax
call fcn.004142f8
test eax, eax
je 0x410c73
push 0
push 1
lea ecx, [ebp - 0x434]
call fcn.00401a58
jmp 0x410ab2
cmp dword [ebx + 0x18], 8
jb 0x410c39
mov ebx, dword [ebx + 4]
jmp 0x410c3c
add ebx, 4
cmp dword [edi + 0x18], 8
jb 0x410c47
mov edi, dword [edi + 4]
jmp 0x410c4a
add edi, 4
cmp dword [esi + 0x80], 8
jb 0x410c58
mov eax, dword [esi + 0x6c]
jmp 0x410c5b
lea eax, [esi + 0x6c]
lea ecx, [ebp - 0x440]
push ecx
push ebx
push edi
push eax
call fcn.0040fec5
mov ecx, eax
call fcn.00414145
jmp 0x410c16
push 0
push 0
push 0x658
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x440]
mov dword [esi + 0x60], eax
mov dword [ebp - 0x438], eax
call fcn.0040fec5
mov edi, 0x4c5c18
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x410cb8
push 0
push dword [ebp - 0x438]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x438], eax
call fcn.0040fec5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x410ce7
push edi
call ebx
jmp 0x410c1a
push dword [ebp - 0x438]
call eax
push edi
mov esi, eax
call ebx
test esi, esi
jne 0x410c1a
push esi
push 1
lea ecx, [ebp - 0x434]
call fcn.00401a58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cc2a
leave
ret 8