Function at 0x40d380
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x310
mov eax, dword [0x449e30]
xor eax, esp
mov dword [esp + 0x30c], eax
push ebx
push edi
push 0
push 0
push 3
push 0
push 1
mov edi, ecx
push 0x80000000
lea eax, [edi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x40d3d8
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.0041fd8a
add esp, 0x310
ret
push ebp
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
push ebp
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x40d41e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.0041fd8a
add esp, 0x310
ret
push esi
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x40d447
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
jmp 0x40d563
push 0x100
lea edx, [esp + 0x220]
push 0
push edx
call fcn.0041fd10
add esp, 0xc
cmp byte [edi + 0x4da], 2
jne 0x40d4f5
push str.CMDB
push ebp
push esi
mov ecx, edi
call fcn.0040d2e0
mov ebx, eax
push ebx
push str.Phoenix_core_version_CMDB_index_:__x
call fcn.004084b0
add esp, 8
push str.Version
mov eax, ebp
sub eax, ebx
push eax
lea ecx, [ebx + esi]
push ecx
mov ecx, edi
call fcn.0040d2e0
push eax
push str.Phoenix_core_version_Version._Index_:__x
mov dword [esp + 0x1c], eax
call fcn.004084b0
mov edx, dword [esp + 0x1c]
add edx, ebx
push 3
lea eax, [edx + esi + 8]
push eax
lea ecx, [esp + 0x22c]
push ecx
call fcn.00421520
lea edx, [esp + 0x230]
push edx
mov byte [esp + 0x237], 0
call fcn.00421509
fst qword [edi + 0x9b0]
add esp, 0x10
fstp qword [esp]
push str.Phoenix_core_version_:__f
call fcn.004084b0
add esp, 0xc
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0041fd10
add esp, 0xc
xor ebx, ebx
add ebp, 0xfffffff9
mov dword [esp + 0x14], ebp
je 0x40d54a
mov ebp, esi
push 6
push str.SECFID
push ebp
call fcn.0042139e
add esp, 0xc
test eax, eax
je 0x40d580
push 6
push str.SECWUP
push ebp
call fcn.0042139e
add esp, 0xc
test eax, eax
je 0x40d669
inc ebx
inc ebp
cmp ebx, dword [esp + 0x14]
jb 0x40d516
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x31c]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.0041fd8a
add esp, 0x310
ret
mov cl, byte [ebx + esi + 7]
push 5
lea edx, [ebx + esi + 0xa]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [edi], cl
call fcn.00421374
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d5a1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [edi + 4]
push edx
call fcn.00421189
push 0xa
lea eax, [ebx + esi + 0x23]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00421374
lea eax, [esp + 0x34]
add esp, 0x18
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d5e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [edi + 0x44]
push eax
call fcn.00421189
push 4
lea ecx, [ebx + esi + 0x2d]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00421374
lea eax, [esp + 0x34]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d620
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
add edi, 0x84
push edi
call fcn.00421189
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, 1
jmp 0x40d567
mov al, byte [ebx + esi + 7]
push 7
lea ecx, [ebx + esi + 0xa]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [edi], al
call fcn.00421374
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d690
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [edi + 4]
push ecx
call fcn.00421189
push 0xa
lea edx, [ebx + esi + 0x23]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00421374
lea eax, [esp + 0x34]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [edi + 0x44]
push edx
call fcn.00421189
push 4
lea eax, [ebx + esi + 0x2d]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00421374
lea eax, [esp + 0x34]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d710
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x20]
push edx
add edi, 0x84
push edi
call fcn.00421189
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, 1
jmp 0x40d567