Function at 0x11040450
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x184
push ebx
push ebp
mov ebp, dword [0x110e8180]
push esi
push edi
cmp ebp, 1
jne 0x11040672
cmp byte [0x110c6683], 0
je 0x11040489
test byte [0x110c66ec], 8
je 0x11040489
push ebp
lea edx, [ebp + 7]
mov ecx, str.Setting_up_critical_hit_table_using_CriticalOverrides.ini__old_fmt_.
call fcn.11011060
cmp dword [0x110e4e9c], 0x10
mov eax, 0x110e4e88
cmovae eax, dword [0x110e4e88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x110404b8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x184
ret
xor edx, edx
mov dword [esp + 0x14], edx
lea ebx, [edx + 0x26]
xor ecx, ecx
mov eax, edx
cmp edx, 0x13
mov dword [esp + 0x10], ecx
cmove eax, ebx
imul ebp, edx, 0x5e8
imul eax, eax, 0x5e8
mov ebx, 0x110afc48
add ebp, 0x510978
sub ebx, eax
sub ebx, 0x110c7eb8
mov dword [esp + 0x24], ebx
lea esi, [eax + 0x110c7eb8]
jmp 0x11040500
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
lea eax, [esp + 0x40]
push str.c__02d__d__d
push eax
call fcn.11041020
mov ecx, esi
add esp, 0x14
xor edi, edi
mov ebx, ebp
sub ecx, ebp
mov dword [esp + 0x28], ecx
jmp 0x11040540
cmp dword [0x110e4e9c], 0x10
mov eax, 0x110e4e88
mov edx, dword [esp + 0x18]
cmovae eax, dword [0x110e4e88]
add ecx, ebx
mov esi, dword [ebx]
push eax
mov ebp, dword [edx + ecx]
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x11040598
lea ecx, [esp + 0x30]
push ecx
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.11003200
test al, al
je 0x11040598
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x11040591
mov ecx, dword [ecx]
call fcn.11011f90
mov esi, eax
cmp byte [0x110c6683], 0
mov ecx, dword [esp + 0x28]
mov dword [ebx + ecx], esi
je 0x110405f4
mov eax, dword [ebx]
cmp esi, eax
je 0x110405f4
push esi
push eax
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xa4]
push str.__Entry__s_value__d_changed_from__d_to__d
push eax
call fcn.11041040
add esp, 0x18
cmp byte [0x110c6683], 0
je 0x110405f0
test byte [0x110c66ec], 8
je 0x110405f0
push 1
mov edx, 8
lea ecx, [esp + 0x98]
call fcn.11011060
mov ecx, dword [esp + 0x28]
inc edi
add ebx, 4
cmp edi, 7
jl 0x11040540
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
inc eax
mov ebp, dword [esp + 0x20]
add esi, 0x1c
sub dword [esp + 0x18], 0x1c
add ebp, 0x1c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
cmp eax, 6
jb 0x11040512
mov ebx, dword [esp + 0x24]
inc ecx
sub ebx, 0xa8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebx
cmp ecx, 9
jb 0x11040500
inc edx
mov ebx, 0x26
mov dword [esp + 0x14], edx
cmp edx, 0x14
jb 0x110404c1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184
ret
cmp byte [0x110c6683], 0
mov ebx, dword [0x110c66ec]
je 0x110406a3
test bl, 8
je 0x110406a3
push 0
mov edx, 8
mov ecx, str.Setting_up_critical_hit_table_using_RP_fixes
call fcn.11011060
mov ebp, dword [0x110e8180]
mov ebx, dword [0x110c66ec]
push 0x7038
push 0x510978
push 0x110c7eb8
call fcn.11081160
add esp, 0xc
mov ecx, 0x17a
mov esi, 0x5179b0
mov edi, 0x110d5f28
rep movsd dword es:[edi], dword [esi]
cmp ebp, 3
jne 0x11040920
cmp byte [0x110c6683], 0
je 0x110406f1
test bl, 8
je 0x110406f1
push 1
lea edx, [ebp + 5]
mov ecx, str._and_CriticalOverrides.ini__new_fmt_.
call fcn.11011060
cmp dword [0x110e4e9c], 0x10
mov eax, 0x110e4e88
cmovae eax, dword [0x110e4e88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x110404a8
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
push ebp
lea eax, [esp + 0x58]
push str.c__02d
push eax
call fcn.11041060
add esp, 0xc
mov eax, 0x110e4e88
cmp dword [0x110e4e9c], 0x10
cmovae eax, dword [0x110e4e88]
push eax
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x110408fb
lea ecx, [esp + 0x30]
push ecx
push str.Enabled
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.11003200
test al, al
je 0x110408fb
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x11040785
mov ecx, dword [ecx]
call fcn.11011f90
mov dword [esp + 0x14], eax
test eax, eax
je 0x110408fb
xor ebx, ebx
mov dword [esp + 0x24], ebx
lea esp, [esp]
cmp eax, 2
jge 0x11040817
push ebx
lea eax, [esp + 0x38]
push str.Part__d
push eax
call fcn.11041060
add esp, 0xc
mov eax, 0x110e4e88
cmp dword [0x110e4e9c], 0x10
cmovae eax, dword [0x110e4e88]
push eax
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x110408e9
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
call fcn.11003200
test al, al
je 0x110408e9
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x14], 0x10
jb 0x1104080a
mov ecx, dword [ecx]
call fcn.11011f90
test eax, eax
je 0x110408e9
push ebx
push ebp
lea eax, [esp + 0x3c]
push str.c__02d__d
push eax
call fcn.11041060
lea eax, [esi + ebx]
mov ecx, 0x110afc48
imul eax, eax, 0xa8
add esp, 0x10
xor ebp, ebp
sub ecx, eax
sub ecx, 0x110c7eb8
mov dword [esp + 0x10], ecx
lea esi, [eax + 0x110c7eb8]
lea ecx, [ecx]
mov ebx, 7
push dword [ecx + esi]
lea eax, [esp + 0x78]
push ebp
push str.e_d__s
push eax
call fcn.11041060
mov edi, dword [esi]
add esp, 0x10
cmp dword [0x110e4e9c], 0x10
mov eax, 0x110e4e88
cmovae eax, dword [0x110e4e88]
push eax
call fcn.1100a210
mov ecx, eax
call fcn.1100a300
test eax, eax
je 0x110408be
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.11003200
test al, al
je 0x110408be
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x14], 0x10
jb 0x110408b7
mov ecx, dword [ecx]
call fcn.11011f90
mov edi, eax
mov ecx, dword [esp + 0x10]
mov dword [esi], edi
add esi, 4
sub ebx, 1
jne 0x11040855
inc ebp
sub ecx, 0x1c
mov dword [esp + 0x10], ecx
cmp ebp, 6
jl 0x11040850
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc ebx
mov dword [esp + 0x24], ebx
cmp ebx, 9
jl 0x110407a0
add esi, 9
inc ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
cmp esi, 0x15f
jb 0x11040720
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184
ret
cmp byte [0x110c6683], 0
je 0x1104093f
test bl, 8
je 0x1104093f
push 1
mov edx, 8
mov ecx, 0x110ae970
call fcn.11011060
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x184
ret