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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064730
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1008b884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
jmp 0x1000dc86
push 0x10069118
push str..DataLocalCustomRank.bmd
call fcn.1004e21e
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x1000dcc3
push 0x10
push 0x10069138
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.1004e832
add esp, 0xc
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.1004ee91
add esp, 4
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004f057
add esp, 4
mov eax, dword [ebp - 0x134]
push eax
call fcn.100472fb
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.1004e40e
add esp, 0x10
mov edx, dword [ebp - 0x128]
push edx
call fcn.1004e137
add esp, 4
mov dword [ebp - 0x12c], 0
jmp 0x1000dd64
mov eax, dword [ebp - 0x12c]
add eax, 1
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
cmp ecx, dword [ebp - 0x134]
jge 0x1000ddad
mov edx, dword [ebp - 0x12c]
and edx, 0x8000001f
jns 0x1000dd85
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 0x1000dd55
lea ecx, [ebp - 0x120]
call fcn.10041bf0
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.100427a0
cmp dword [ebp - 0x174], 0
je 0x1000de08
push 0x10
push 0x10069160
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.10042170
mov dword [ebp - 0x138], 0
push str.Rank
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x140]
call fcn.10042170
jmp 0x1000de5c
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x124]
call fcn.10042ad0
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x124]
call fcn.10041d10
test eax, eax
je 0x1000dfb6
push 0x48
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.1004a330
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x58], eax
push 0
push 0x1006919c
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x54], eax
push 0
push 0x100691a8
lea edx, [ebp - 0x154]
push edx
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x50], eax
push 0
push str.MinReset
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x4c], eax
push 0
push str.MaxReset
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x48], eax
push 0
push str.VipType
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x3c], eax
push 0
push str.IWCLord
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov dword [ebp - 0x38], eax
push 0x1006911b
push str.ImageName
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x124]
call fcn.10042100
mov ecx, eax
call fcn.100420e0
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, 0x10095390
call fcn.1000e140
jmp 0x1000de42
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.10047304
add esp, 4
jmp 0x1000dfe3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.10041cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100472b7
mov esp, ebp
pop ebp
ret