Function at 0x1000daa0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064220
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1008a884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
push 0x100680f8
push str..DataLocalCustomRank.bmd
call fcn.1004dd0e
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x1000db10
push 0x10
push 0x10068118
push str.CustomRank.bmd_file_not_found
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
push 0
mov eax, dword [ebp - 0x128]
push eax
call fcn.1004e322
add esp, 0xc
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.1004e981
add esp, 4
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004eb47
add esp, 4
mov eax, dword [ebp - 0x134]
push eax
call fcn.10046deb
add esp, 4
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x130], ecx
mov edx, dword [ebp - 0x128]
push edx
mov eax, dword [ebp - 0x134]
push eax
push 1
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.1004defe
add esp, 0x10
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004dc27
add esp, 4
mov dword [ebp - 0x12c], 0
jmp 0x1000dbb1
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x134]
jge 0x1000dbfa
mov edx, dword [ebp - 0x12c]
and edx, 0x8000001f
jns 0x1000dbd2
dec edx
or edx, 0xffffffe0
inc edx
movzx eax, byte [edx + 0x1008a424]
mov ecx, dword [ebp - 0x130]
add ecx, dword [ebp - 0x12c]
movsx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x12c]
mov byte [eax], dl
jmp 0x1000dba2
lea ecx, [ebp - 0x120]
call fcn.100416e0
mov dword [ebp - 4], 0
push 0
push 0x74
mov ecx, dword [ebp - 0x134]
push ecx
mov edx, dword [ebp - 0x130]
push edx
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x120]
call fcn.10042290
cmp dword [ebp - 0x174], 0
je 0x1000dc55
push 0x10
push 0x10068140
push str.CustomRank.bmd_file_corrupted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.CustomRanks
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x120]
call fcn.10041c60
mov dword [ebp - 0x138], 0
push str.Rank
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x140]
call fcn.10041c60
jmp 0x1000dca9
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x124]
call fcn.100425c0
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x124]
call fcn.10041800
test eax, eax
je 0x1000de03
push 0x48
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.10049e20
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x58], eax
push 0
push 0x1006817c
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x54], eax
push 0
push 0x10068188
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x50], eax
push 0
push str.MinReset
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x4c], eax
push 0
push str.MaxReset
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x48], eax
push 0
push str.VipType
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x3c], eax
push 0
push str.IWCLord
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov dword [ebp - 0x38], eax
push 0x100680fb
push str.ImageName
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10041bf0
mov ecx, eax
call fcn.10041bd0
mov ecx, 8
mov esi, eax
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
sub esp, 0x48
mov ecx, 0x12
lea esi, [ebp - 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10094390
call fcn.1000df70
jmp 0x1000dc8f
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.10046df4
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.100417c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10046da7
mov esp, ebp
pop ebp
ret