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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065210
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1008b880]
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 0x100690d8
push str..DataLocalCustomRank.bmd
call fcn.1004ce8f
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x1000d7e0
push 0x10
push 0x100690f8
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.1004d4a3
add esp, 0xc
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.1004db02
add esp, 4
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004dcc8
add esp, 4
mov eax, dword [ebp - 0x134]
push eax
call fcn.10045ee9
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.1004d07f
add esp, 0x10
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004cda8
add esp, 4
mov dword [ebp - 0x12c], 0
jmp 0x1000d881
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x134]
jge 0x1000d8ca
mov edx, dword [ebp - 0x12c]
and edx, 0x8000001f
jns 0x1000d8a2
dec edx
or edx, 0xffffffe0
inc edx
movzx eax, byte [edx + 0x1008b424]
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 0x1000d872
lea ecx, [ebp - 0x120]
call fcn.10040820
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.100413d0
cmp dword [ebp - 0x174], 0
je 0x1000d925
push 0x10
push 0x10069120
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.10040da0
mov dword [ebp - 0x138], 0
push str.Rank
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x140]
call fcn.10040da0
jmp 0x1000d979
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x124]
call fcn.10041700
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x124]
call fcn.10040940
test eax, eax
je 0x1000dad3
push 0x48
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.10048ce0
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x58], eax
push 0
push 0x1006915c
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x54], eax
push 0
push 0x10069168
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x50], eax
push 0
push str.MinReset
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x4c], eax
push 0
push str.MaxReset
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x48], eax
push 0
push str.VipType
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x3c], eax
push 0
push str.IWCLord
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebp - 0x38], eax
push 0x100690db
push str.ImageName
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10040d30
mov ecx, eax
call fcn.10040d10
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, 0x100953b0
call fcn.1000dc40
jmp 0x1000d95f
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.10045ef2
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.10040900
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.10045eb8
mov esp, ebp
pop ebp
ret