Function at 0x46ac40
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7444
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4fca20]
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 esi, ecx
push str.BLHashReader
mov dword [ebp - 0x178], esi
call fcn.00498b90
xor ebx, ebx
mov dword [esi], vtable.BLHashReader.0
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
push 4
push str.rs
lea eax, [esi + 0x20]
push 4
lea edi, [esi + 0x5c]
push eax
mov dword [edi], ebx
mov dword [esi + 0x58], ebx
call fcn.0047dff9
push 4
push str.js
lea ecx, [esi + 0x24]
push 4
push ecx
call fcn.0047dff9
push 4
push str.elf
lea edx, [esi + 0x28]
push 4
push edx
call fcn.0047dff9
push 4
push str.bkdr
lea eax, [esi + 0x2c]
push 4
push eax
call fcn.0047dff9
add esp, 0x40
push 4
push str.ap
lea ecx, [esi + 0x30]
push 4
push ecx
call fcn.0047dff9
push 4
push str.djb
lea edx, [esi + 0x34]
push 4
push edx
call fcn.0047dff9
push 4
push str.sdbm
lea eax, [esi + 0x38]
push 4
push eax
call fcn.0047dff9
push 4
push str.pjw
lea ecx, [esi + 0x3c]
push 4
push ecx
call fcn.0047dff9
add esp, 0x40
push 4
push str.hflp
lea edx, [esi + 0x40]
push 4
push edx
call fcn.0047dff9
push 4
push str.hf
lea eax, [esi + 0x44]
push 4
push eax
call fcn.0047dff9
push 4
push str.str
push 4
lea ecx, [esi + 0x48]
push ecx
call fcn.0047dff9
push 4
push str.fnv
lea edx, [esi + 0x4c]
push 4
push edx
call fcn.0047dff9
add esp, 0x40
push 4
push str.dek
lea eax, [esi + 0x50]
push 4
push eax
call fcn.0047dff9
push 4
push str.bp
lea ecx, [esi + 0x54]
push 4
push ecx
call fcn.0047dff9
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x140], ebx
lea edx, [ebp - 0x148]
push edx
mov byte [ebp - 4], 2
call fcn.0045c9a0
push 0x4d5c90
push eax
lea eax, [ebp - 0x158]
push eax
mov byte [ebp - 4], 3
call fcn.0040338d
add esp, 0x30
mov eax, dword [ebp - 0x148]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46adff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x158]
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46b03c
call fcn.00404842
test eax, eax
js 0x46b297
push 0
lea edx, [ebp - 0x13c]
push edx
push 4
lea eax, [ebp - 0x164]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46ae5e
call fcn.00404842
test eax, eax
js 0x46b278
cmp dword [ebp - 0x13c], 4
jne 0x46b278
push 4
lea ecx, [ebp - 0x164]
push ecx
push 4
push edi
call fcn.0047dff9
add esp, 0x10
lea edx, [ebp - 0x15c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x160], eax
cmp eax, 0xffffffff
jne 0x46aea7
call fcn.00404842
test eax, eax
js 0x46aeb9
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], eax
mov eax, dword [edi]
cmp eax, 0x64000
jl 0x46b278
cdq
cmp edx, dword [ebp - 0x14c]
ja 0x46b278
jb 0x46aee1
cmp eax, dword [ebp - 0x150]
ja 0x46b278
push 0
lea ecx, [ebp - 0x13c]
push ecx
push 0x10
lea edx, [ebp - 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46af08
call fcn.00404842
test eax, eax
js 0x46b278
cmp dword [ebp - 0x13c], 0x10
jne 0x46b278
mov eax, dword [edi]
push eax
call fcn.0047c9d3
mov ecx, dword [edi]
add esp, 4
push 0
lea edx, [ebp - 0x13c]
push edx
push ecx
push eax
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46af48
call fcn.00404842
test eax, eax
js 0x46b278
mov eax, dword [ebp - 0x13c]
cmp eax, dword [edi]
jne 0x46b278
lea ecx, [ebp - 0x138]
call fcn.00416130
mov ecx, dword [edi]
mov edx, dword [esi + 0x58]
push ecx
push edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 6
call fcn.00416780
xor ecx, ecx
push 0x40
push ecx
lea edx, [ebp - 0x62]
push edx
mov byte [ebp - 4], 7
mov word [ebp - 0x64], cx
call fcn.0047e610
movzx eax, byte [ebp - 0x11]
movzx ecx, byte [ebp - 0x12]
movzx edx, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push ecx
movzx ecx, byte [ebp - 0x15]
push edx
movzx edx, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push ecx
movzx ecx, byte [ebp - 0x18]
push edx
movzx edx, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push ecx
movzx ecx, byte [ebp - 0x1b]
push edx
movzx edx, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push ecx
movzx ecx, byte [ebp - 0x1e]
push edx
movzx edx, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push ecx
push edx
push eax
lea ecx, [ebp - 0x64]
push 0x4cf020
push ecx
call fcn.0046a860
lea eax, [ebp - 0x64]
add esp, 0x54
lea edx, [eax + 2]
jmp 0x46b000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b000
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x64]
push edx
push eax
push 0
lea ecx, [ebp - 0x9c]
call fcn.00416a10
test eax, eax
je 0x46b049
lea ecx, [ebp - 0x9c]
call fcn.00401701
jmp 0x46b278
mov dword [ebp - 0x144], eax
mov ebx, eax
jmp 0x46ae34
mov eax, dword [edi]
mov edi, dword [ebp - 0x150]
cdq
sub edi, eax
mov eax, dword [ebp - 0x14c]
sbb eax, edx
add edi, 0xffffffec
adc eax, 0xffffffff
mov dword [ebp - 0x14c], eax
jne 0x46b072
test edi, edi
je 0x46b259
lea eax, [edi + 1]
push eax
call fcn.0047c9d3
mov ebx, eax
lea eax, [edi + 1]
push eax
push 0
push ebx
call fcn.0047e610
mov edx, dword [ebp - 0x144]
add esp, 0x10
push 0
lea ecx, [ebp - 0x13c]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b0b5
call fcn.00404842
test eax, eax
js 0x46b253
mov eax, dword [0x4fc7ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4fc7ec
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
push ebx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 8
call fcn.00403254
xor eax, eax
push 2
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
call fcn.004146f0
push edi
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 9
call fcn.004146f0
mov eax, dword [ebp - 0x174]
push edi
push ebx
push edi
push eax
call fcn.0047dff9
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], cx
mov dword [ebp - method.CResponseDecoder.virtual_0], vtable.CResponseDecoder.0
push ecx
push str.135246
lea edx, [ebp - 0x80]
push edx
sub esp, 0x10
lea eax, [ebp - 0x174]
mov ecx, esp
mov dword [ebp - 0x15c], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.00414260
lea ecx, [ebp - 0x148]
call fcn.004afb50
test eax, eax
je 0x46b1ac
cmp dword [ebp - 0x6c], 8
jb 0x46b183
mov eax, dword [ebp - 0x80]
mov edi, eax
test eax, eax
jne 0x46b186
jmp 0x46b19f
lea edi, [ebp - 0x80]
mov eax, edi
lea edx, [eax + 2]
jmp 0x46b190
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46b190
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x154]
call fcn.0040170b
push ecx
mov ecx, esp
mov dword [ebp - 0x15c], esp
push 0x4d39e8
call fcn.00402008
mov edi, dword [ebp - 0x154]
lea eax, [esi + 0x10]
push eax
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x14c], esp
mov ebx, esp
push edi
mov byte [ebp - 4], 0xc
call fcn.004014d8
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0xb
call fcn.0046f1c0
add esp, 0xc
cmp dword [ebp - 0x6c], 8
mov dword [ebp - method.CResponseDecoder.virtual_0], vtable.CResponseDecoder.0
jb 0x46b20f
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0047d656
add esp, 4
mov eax, dword [ebp - 0x174]
xor edx, edx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], dx
test eax, eax
je 0x46b236
push eax
call fcn.0047d656
add esp, 4
mov byte [ebp - 4], 7
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b253
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ebx, dword [ebp - 0x144]
cmp dword [ebp - 0x88], 8
mov dword [esi + 0xc], 1
jb 0x46b278
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0047d656
add esp, 4
test ebx, ebx
je 0x46b297
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov dword [ebp - 0x144], 0
mov ebx, dword [ebp - 0x144]
jmp 0x46b29d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x158]
add eax, 0xfffffff0
cmp dword [esi + 0xc], 0
mov byte [ebp - 4], 2
jne 0x46b2bf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46b2cc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b2d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x46b2df
push ebx
call edi
mov eax, esi
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.0047e4d2
mov esp, ebp
pop ebp
ret