Function at 0x46f4f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x28]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
add ecx, 1
push ecx
call fcn.0047ac6c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46f53e
push str.ERROR:_rc_file_binary_search:_malloc__key__n
call fcn.00403fa0
add esp, 4
mov dword [ebp - 8], 1
jmp 0x46f730
mov eax, dword [ebp + 0x18]
add eax, dword [ebp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc], eax
push 0
mov edx, dword [ebp - 0xc]
imul edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048231b
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00481fa5
add esp, 0x10
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x14]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0047a350
add esp, 8
test eax, eax
jne 0x46f612
mov ecx, dword [ebp + 0x24]
add ecx, 1
push ecx
call fcn.0047ac6c
add esp, 4
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x20]
cmp dword [eax], 0
jne 0x46f5ca
push str.ERROR:_rc_file_binary_search:_malloc__record__n
call fcn.00403fa0
add esp, 4
mov dword [ebp - 8], 1
jmp 0x46f730
push 0
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0048231b
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
push eax
call fcn.00481fa5
add esp, 0x10
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x24]
mov byte [edx + eax], 0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], 1
jmp 0x46f724
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x1c]
jl 0x46f628
mov eax, dword [ebp + 0x20]
mov dword [eax], 0
jmp 0x46f724
cmp dword [ebp + 0xc], 0
je 0x46f6aa
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0047a350
add esp, 8
test eax, eax
jle 0x46f676
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 0xc]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046f4f0
add esp, 0x24
mov dword [ebp - 8], eax
jmp 0x46f6a8
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046f4f0
add esp, 0x24
mov dword [ebp - 8], eax
jmp 0x46f724
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047a350
add esp, 8
test eax, eax
jge 0x46f6f2
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0xc]
sub edx, 1
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046f4f0
add esp, 0x24
mov dword [ebp - 8], eax
jmp 0x46f724
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046f4f0
add esp, 0x24
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
call fcn.0040a7e0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret