Function at 0x4013f0
Capabilities:
Get common file path
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x105c
call fcn.00607520
mov eax, dword [0x70635c]
xor eax, esp
mov dword [esp + 0x1058], eax
push ebx
mov ebx, ecx
cmp dword [ebx], 0
push esi
mov dword [esp + 0x18], ebx
jne 0x40144f
push str.Called__m_bUse_is_FALSE_return_
push 0x6f
push str..CMaExAllow.cpp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1058]
xor ecx, esp
call fcn.00606c9e
add esp, 0x105c
ret
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push edi
push 0x70be84
push str.Called__url____s_
push 0x73
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push 0x103
lea eax, [esp + 0x271]
push 0
push eax
mov byte [esp + 0x278], 0
call sub.MSVCR90.dll_memset
push 0x103
lea ecx, [esp + 0x75]
push 0
push ecx
mov byte [esp + 0x7c], 0
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0
push 0x1a
lea edx, [esp + 0x268]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.MarkAny
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x5c]
push str._sExpolicy.dat
push edx
call sub.MSVCR90.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push str.szPolicyPath___s_
push 0x79
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
call fcn.00401070
push 0x103
lea ecx, [esp + 0x16d]
push 0
push ecx
mov byte [esp + 0x174], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x60]
push edx
call sub.MSVCR90.dll__time64
lea eax, [esp + 0x64]
push eax
call sub.MSVCR90.dll__localtime64
mov ecx, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, edi
imul ecx, ecx, 0x64
add esp, 0x20
add edx, 0x76c
inc esi
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
push eax
push esi
push edx
push str.nYear__d_nMonth__d_nDay__d_nHour__d_nMin__d_nHourMin__d_
push 0x8a
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push 0x3ff
xor edi, edi
lea ecx, [esp + 0x88d]
push edi
push ecx
mov byte [esp + 0x894], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x84]
push 0x6cf0e8
push edx
call sub.MSVCR90.dll_fopen
mov esi, eax
add esp, 0x34
cmp esi, edi
jne 0x40161b
lea eax, [esp + 0x58]
push eax
push str.szPolicyPath__s__not_exist____
push 0x91
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
add esp, 0xc
call fcn.00401160
push 0x400
mov dword [ebx], eax
mov dword [ebx + 4], 1
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x410], edi
push edi
add ebx, 0x10
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x401c4d
push 2
push edi
push esi
call sub.MSVCR90.dll_fseek
push esi
call sub.MSVCR90.dll_ftell
push 0
push 0
push esi
mov edi, eax
call sub.MSVCR90.dll_fseek
push esi
push 0x400
lea ecx, [esp + 0x88c]
push 1
push ecx
call sub.MSVCR90.dll_fread
push esi
mov dword [esp + 0x58], eax
call sub.MSVCR90.dll_fclose
mov edx, dword [esp + 0x58]
add esp, 0x30
push edx
push edi
lea eax, [esp + 0x870]
push eax
lea ecx, [esp + 0x64]
push ecx
push str.szPolicyPath__s__szExPolicy__s__size__d__iReadSize__d_
push 0x9e
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x888]
xor esi, esi
push edi
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x60], esi
call fcn.00416230
mov edi, eax
add esp, 0x28
cmp edi, esi
je 0x40170d
push 0x103
lea edx, [esp + 0x369]
push esi
push edx
mov byte [esp + 0x370], 0
call sub.MSVCR90.dll_memset
push edi
push 0x6cf144
mov ecx, 0x104
lea edi, [esp + 0x378]
call fcn.00401010
add esp, 0x14
push 0x10
push str.MarkAny
mov eax, edi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x58]
push ecx
call sub.MSVCR90.dll__unlink
add esp, 4
mov eax, ebx
jmp 0x401c48
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov byte [edx + eax], 0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.cpTgtData__s__iTgtDataSize__d_
push 0xae
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push 0x3ff
xor ebx, ebx
lea ecx, [esp + 0xc7d]
mov eax, 0x7c
push ebx
push ecx
mov word [esp + 0x34], ax
mov byte [esp + 0xc84], 0
call sub.MSVCR90.dll_memset
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc84]
add esp, 0x1c
mov byte [esp + 0x50], bl
mov dword [esp + 0x51], ebx
mov dword [esp + 0x2c], ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401785
lea edx, [esp + 0x18]
push edx
push esi
call sub.MSVCR90.dll_strtok
xor esi, esi
push 0x3ff
mov edi, eax
lea eax, [esp + 0x475]
push esi
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x47c], bl
call sub.MSVCR90.dll_memset
add esp, 0x14
test edi, edi
je 0x4019dc
jmp 0x4017e0
mov eax, dword [esp + 0x2c]
cmp eax, 3
ja case.default.0x4017ed
jmp dword [eax*4 + 0x401c68]
push edi
push 0
push str.EXPOLICY_ISSUE_TIME_nTok__d_token__s_
push 0xc7
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push 4
lea ecx, [esp + 0x64]
push edi
push ecx
call sub.MSVCR90.dll_strncpy
lea edx, [esp + 0x6c]
push edx
call sub.MSVCR90.dll_atoi
mov esi, eax
xor eax, eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], al
push 2
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x54], esi
call sub.MSVCR90.dll_strncpy
lea edx, [esp + 0x7c]
push edx
call sub.MSVCR90.dll_atoi
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x80], eax
mov byte [esp + 0x84], al
push 2
lea eax, [edi + 6]
push eax
lea ecx, [esp + 0x88]
push ecx
call sub.MSVCR90.dll_strncpy
lea edx, [esp + 0x8c]
push edx
call sub.MSVCR90.dll_atoi
mov dword [esp + 0x54], eax
xor eax, eax
add esp, 0x40
mov dword [esp + 0x50], eax
mov byte [esp + 0x54], al
push 2
lea eax, [edi + 8]
push eax
lea ecx, [esp + 0x58]
push ecx
call sub.MSVCR90.dll_strncpy
lea edx, [esp + 0x5c]
push edx
call sub.MSVCR90.dll_atoi
mov ebx, eax
xor eax, eax
push 2
mov dword [esp + 0x64], eax
mov byte [esp + 0x68], al
add edi, 0xa
lea eax, [esp + 0x64]
push edi
push eax
call sub.MSVCR90.dll_strncpy
lea ecx, [esp + 0x6c]
push ecx
call sub.MSVCR90.dll_atoi
mov edx, dword [esp + 0x34]
add esp, 0x20
push eax
push ebx
push edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
push eax
push esi
push str.nIssueTimeYear__d_nIssueTimeMonth__d_nIssueTimeDay__d_nIssueTimeHour__d_nIssueTimeMin__d_
push 0xdc
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
add esp, 0x1c
jmp case.default.0x4017ed
push edi
push 1
push str.EXPOLICY_SITE_nTok__d_token__s_
push 0xdf
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push edi
lea ecx, [esp + 0x170]
push 0x104
push ecx
call sub.MSVCR90.dll_strcpy_s
add esp, 0x1c
jmp case.default.0x4017ed
push edi
push 2
push str.EXPOLICY_VALID_TIME_nTok__d_token__s_
push 0xe3
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
push edi
call sub.MSVCR90.dll_atoi
add esp, 0x14
mov dword [esp + 0x44], eax
jmp case.default.0x4017ed
sub edi, dword [esp + 0x10]
lea edi, [esp + edi + 0xc68]
push edi
push str.EXPOLICY_STRING_szTmp__s_
push 0xe8
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
lea edx, [esp + 0x474]
add esp, 0xc
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019b1
lea edx, [esp + 0x18]
push edx
push 0
call sub.MSVCR90.dll_strtok
inc dword [esp + 0x34]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4017e0
mov esi, dword [esp + 0x44]
lea edi, [esi + ebx]
imul edi, edi, 0x64
add edi, dword [esp + 0x3c]
push ebx
push esi
push ebx
push edi
push str.nIssueTimeHourMin____d__nIssueTimeHour____d___nValidTime____d___nIssueTimeHour____d_
push 0xf5
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x40]
add esp, 0x18
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x28]
push eax
push edi
push ecx
push edx
push ebx
push str.valid_time__d_d_d_d___current_time__d_d_d_d_
push 0xf8
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
call fcn.00401070
mov eax, dword [esp + 0x68]
add esp, 0x28
cmp ebx, eax
jl 0x401bf1
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x30]
jl 0x401bf1
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x24]
jl 0x401bf1
cmp edi, dword [esp + 0x34]
jl 0x401bf1
push str.IMAGESAFERNOTUSE
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x401ac6
lea ecx, [esp + 0x468]
push ecx
push str.STRING_EXPOLICY_IMAGESAFERNOTUSE_szExpolicyString__s_
push 0x108
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
call fcn.00401070
mov esi, dword [esp + 0x2c]
mov edi, 1
add esp, 0xc
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
jmp 0x401b14
lea edx, [esp + 0x468]
push edx
push str.except_process_szExpolicyString__s_
push 0x110
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x474]
push eax
lea ecx, [esi + 0x10]
push 0x400
push ecx
call sub.MSVCR90.dll_strcpy_s
add esp, 0x18
mov dword [esi + 0xc], 1
mov edi, 1
lea edx, [esp + 0x15c]
push edx
push 0x70be84
mov dword [esi + 4], 0
call sub.MSVCR90.dll_strstr
add esp, 8
test eax, eax
jne 0x401bda
lea eax, [esp + 0x15c]
push eax
push 0x70be84
push str.URL_Not_Match__g_PacketInfo.szUrl____s___szUrl____s_
push 0x118
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
add esp, 0x10
mov ecx, str.NOTUSE
lea eax, [esp + 0x15c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401b91
test dl, dl
je 0x401b8d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401b91
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b71
xor eax, eax
jmp 0x401b96
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401bcb
push str.NOUSE___
push 0x11c
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR90.dll_free
add esp, 0xc
mov eax, edi
jmp 0x401c4f
mov edx, dword [esp + 0x10]
push edx
call sub.MSVCR90.dll_free
add esp, 4
jmp 0x401c4d
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCR90.dll_free
add esp, 4
mov dword [esi + 0x410], edi
mov eax, edi
jmp 0x401c4f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
push ebx
push str.expolicy_expire________valid_time__d_d_d_d___current_time__d_d_d_d_
push 0xfd
push str..CMaExAllow.cpp
call ebp
mov ecx, eax
mov esi, str.CMAEXALLOW::CheckExceptPolicy
call fcn.00401070
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCR90.dll_free
lea edx, [esp + 0x84]
push edx
call sub.MSVCR90.dll__unlink
mov eax, dword [esp + 0x50]
add esp, 0x30
call fcn.00401120
xor eax, eax
mov ecx, dword [esp + 0x1068]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.00606c9e
add esp, 0x105c
ret