Function at 0x10005ac0
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006c206
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100810f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [0x1008374c], eax
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x10005f20
sub eax, 1
jne 0x10005f96
push str.PluginCommand___DLL_PROCESS_ATTACH
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 0x1007a5f0
push str.SCWINDOW
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10005f11
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10005f11
mov byte [0x10083751], 1
call fcn.1001b7d0
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], 0
mov edx, dword [0x100829cc]
mov eax, dword [edx + 0xc]
mov ecx, 0x100829cc
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x40], 1
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x10005ba8
mov ecx, 0x104
lea eax, [esp + 0x14]
call fcn.10003b80
mov ebx, dword [esp + 0x14]
push 0x104
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea esi, [esp + 0x14]
call fcn.10002c10
push ebx
push 0x1007a390
call fcn.1000d080
add esp, 8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea edi, [esp + 0x10]
call fcn.10002760
call fcn.100029b0
mov ecx, dword [esp + 0x10]
push ecx
push 0x1007a3c0
call fcn.1000d080
mov edx, edi
push edx
mov ecx, str.worldoftanks.exe
call fcn.10002b50
add esp, 0xc
test al, al
je 0x10005eba
push 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
push 0x1792
call fcn.10006270
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0
mov byte [0x10083750], 1
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push str.WOTBOX_Event_ReloadFileMapping
push 0
push 1
push 0
mov dword [0x1008375c], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x10083760], eax
call esi
push ecx
mov dword [0x10083764], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.10003bd0
add eax, 0x10
mov dword [esi], eax
lea esi, [esp + 0x1c]
call fcn.10006120
add esp, 4
mov edi, 0x100837b8
mov byte [esp + 0x40], 2
call fcn.10003200
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x6c
call fcn.1004f246
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov byte [esp + 0x40], 3
test edi, edi
je 0x10005cf2
mov eax, dword [0x100837b8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.10003bd0
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.10006390
jmp 0x10005cf4
xor eax, eax
mov byte [esp + 0x40], 1
push 0x48
mov dword [0x10083754], eax
call fcn.1004f246
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
mov byte [esp + 0x40], 4
test esi, esi
je 0x10005d38
mov eax, dword [0x100837b8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
call fcn.10003bd0
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.1000bea0
jmp 0x10005d3a
xor eax, eax
lea ecx, [esp + 0x1c]
push 0x100837b8
mov byte [esp + 0x44], 1
push ecx
mov ebx, str.WOTBOX.MSG
mov dword [0x10083758], eax
call fcn.10005fb0
add esp, 8
mov edi, 0x100837d0
mov byte [esp + 0x40], 5
call fcn.10003200
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005d8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x100837d0]
push ecx
push 0x1007a464
call fcn.1000d080
lea edx, [esp + 0x30]
push 0x100837b8
push edx
mov ebx, str.res_mods_
call fcn.10005fb0
push eax
lea eax, [esp + 0x38]
push eax
mov ebx, str.0.8.4
mov byte [esp + 0x58], 6
call fcn.10005fb0
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, 0x1007a498
mov byte [esp + 0x60], 7
call fcn.10005fb0
mov eax, dword [eax]
add esp, 0x20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005e0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005e34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005e59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x10005e99
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push ecx
mov ecx, str.UnZipBoxData_crosshairs_7.zip
call fcn.10002620
mov edx, dword [0x10083754]
push edx
call fcn.10006b60
push ecx
mov eax, esp
mov dword [esp + 0x34], esp
push eax
mov ecx, str.SetConfigmarkerCrosshairType_7
call fcn.10002620
mov ecx, dword [0x10083754]
push ecx
call fcn.10006b60
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
push edx
mov ecx, 0x1007a320
call fcn.10002620
mov ecx, dword [0x10083754]
call fcn.10008950
mov ebx, dword [esp + 0x14]
call section..text
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005ee4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005f96
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x10005f96
push 0x1007a57c
call fcn.1000d080
add esp, 4
jmp 0x10005f96
push str.PluginCommand___DLL_PROCESS_DETACH
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp byte [0x10083751], 0
je 0x10005f96
call fcn.100010d0
mov eax, dword [0x10083754]
test eax, eax
je 0x10005f53
push eax
mov esi, eax
call fcn.100066b0
push esi
call fcn.1004ea14
add esp, 4
mov eax, dword [0x10083758]
test eax, eax
je 0x10005f6d
push eax
mov esi, eax
call fcn.1000bfe0
push esi
call fcn.1004ea14
add esp, 4
cmp byte [0x10083750], 0
je 0x10005f96
mov eax, dword [0x1008375c]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov ecx, dword [0x10083760]
push ecx
call esi
mov edx, dword [0x10083764]
push edx
call esi
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc