Function at 0x40bea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x452afb
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x46304c]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46304c]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov edx, 1
mov ecx, 0x4673d0
call sym.War3.exe_H2
test eax, eax
je 0x40bef5
xor eax, eax
jmp 0x40c1d1
xor ebx, ebx
mov ecx, 0x4674fc
mov dword [esp + 0x3c], ebx
call sym.War3.exe_Co
push 0x104
push 0x4673e8
lea eax, [esp + 0x184]
push eax
call sub.Storm.dll_Ordinal_501
mov ecx, dword [0x4673e0]
mov dword [esp + 0x40], ecx
mov ecx, 0x4674fc
mov byte [0x4673e8], bl
call sym.War3.exe_F4
cmp byte [esp + 0x17c], bl
je 0x40c1c7
or ebp, 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], vtable.CDataStore.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0x40000
push ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0x4b0], ebx
call dword [0x456c34]
mov esi, dword [0x467570]
cmp esi, ebx
jle 0x40bfd8
lea esp, [esp]
cmp dword [esi + 0x18], ebx
je 0x40bfc9
mov edi, dword [esi + 0x14]
push edi
call sub.Storm.dll_Ordinal_506
mov edx, dword [esp + 0x34]
add eax, 1
add edx, eax
cmp edx, 0x40000
ja 0x40bfd8
push edi
lea ecx, [esp + 0x28]
call sym.War3.exe_IL
mov eax, dword [0x467568]
mov esi, dword [eax + esi + 4]
cmp esi, ebx
jle 0x40bfd8
jne 0x40bfa0
push ebx
mov ecx, 0x467564
call fcn.0040b1b0
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
call sym.War3.exe_CX
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x494], ebp
mov dword [esp + 0x24], vtable.CDataStore.0
je 0x40c025
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
call dword [0x456c2c]
mov eax, dword [esp + 0x18]
push ebx
push 0x4e1
lea eax, [eax + eax + 0xc]
push str..FileCache.cpp
push eax
mov dword [esp + 0x24], eax
call sub.Storm.dll_Ordinal_401
mov ecx, dword [esp + 0x20]
push 1
push 2
push 2
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
push edi
call sub.Storm.dll_Ordinal_551
test eax, eax
je 0x40c199
mov ebp, 0x138
push ebp
lea eax, [esp + 0x48]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x1c
push str.File_Cache_Prefetch_List_0
lea ecx, [esp + 0x4c]
push ecx
call sub.Storm.dll_Ordinal_501
mov eax, dword [esp + 0x14]
push 7
push ebx
push eax
lea edx, [eax + 0x138]
push edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
call sub.Storm.dll_Ordinal_595
push 0x104
lea ecx, [esp + 0x180]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x80], eax
call sub.Storm.dll_Ordinal_501
push 7
push ebx
push ebp
lea eax, [esp + 0x50]
push eax
call sub.Storm.dll_Ordinal_595
mov dword [esp + 0x64], eax
lea eax, [ebp - 0x34]
lea ebx, [esp + 0x280]
call fcn.00409860
mov edx, 1
mov ecx, ebx
call sym.War3.exe_FZ
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x384]
push ecx
push edx
lea edx, [ebp - 0x34]
lea ecx, [esp + 0x184]
call fcn.004098a0
push 0x3f3f3f3f
push 0x80
push 2
push 0
mov edx, 0x40000000
lea ecx, [esp + 0x394]
call sym.War3.exe_Fa
mov esi, eax
cmp esi, 0xffffffff
je 0x40c197
lea eax, [esp + 0x1c]
push eax
push ebp
lea edx, [esp + 0x4c]
mov ecx, esi
mov dword [esp + 0x24], 0
call sym.War3.exe_Hy
test eax, eax
je 0x40c190
cmp dword [esp + 0x1c], ebp
jne 0x40c190
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov edx, edi
mov ecx, esi
call sym.War3.exe_Hy
test eax, eax
je 0x40c190
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jne 0x40c190
mov dword [esp + 0x3c], 1
mov ecx, esi
call sym.War3.exe_FX
xor ebx, ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40c1b2
push ebx
push 0x108
push str.e:drive1_temp_buildwar3xengine_source_baseCDataStore.h
push eax
call sub.Storm.dll_Ordinal_403
cmp edi, ebx
je 0x40c1c7
push ebx
push 0x526
push str..FileCache.cpp
push edi
call sub.Storm.dll_Ordinal_403
mov eax, dword [esp + 0x3c]
mov dword [0x4673d0], ebx
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.00401d9e
add esp, 0x484
ret