Function at 0x54b080
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c9c31
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x7e500c]
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 edi, ecx
lea esi, [edi + 0x50]
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0xb4], xmm0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x54b0ca
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xb8], eax
cmp eax, 0xffffffff
jne 0x54b0f5
xor bl, bl
jmp 0x54b452
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x54b11a
mov eax, dword [ebp - 0x48]
mov bl, 1
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xac], eax
jmp 0x54b132
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test bl, bl
je 0x54b452
cmp dword [ebp - 0xac], 0
jl 0x54b452
jg 0x54b162
cmp dword [ebp - 0xb0], 0
jbe 0x54b452
push 0xa
push str.NGLClient_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00427530
push 7
push str.default
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004389e0
push 4
push str..log
lea ecx, [ebp - 0x28]
call fcn.004389e0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
call fcn.004ed3b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, esi
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x54b1e8
mov ecx, dword [esi]
push dword [ebp - 0x30]
mov edx, dword [esi + 0x10]
push eax
push 0
call fcn.0042fe40
add esp, 0xc
cmp eax, 0xffffffff
je 0x54b241
lea ecx, [ebp - 0x40]
call fcn.00427170
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x54b23a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x54b230
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54b470
push edx
push ecx
call fcn.0065106e
add esp, 8
xor al, al
jmp 0x54b454
cmp dword [edi + 0xdc], 0
je 0x54b27a
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004de0c0
test eax, eax
jne 0x54b27a
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00431fb0
push esi
lea ecx, [ebp - 0xa8]
call fcn.00427050
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.00427050
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.004f9c50
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.004fc600
lea eax, [ebp - 0x90]
mov edx, 0x71a2e0
push eax
lea ecx, [ebp - 0xd0]
call fcn.00431170
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x54b2f3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004272f0
lea ecx, [ebp - 0xd0]
call fcn.00427170
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.004f9ea0
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.004f9cd0
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0xa8]
push eax
call fcn.004271d0
lea ecx, [ebp - 0x78]
call fcn.00427170
lea ecx, [ebp - 0x90]
call fcn.00427170
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00427170
lea edx, [ebp - 0xa8]
mov ecx, esi
call fcn.004f9f50
test al, al
je 0x54b401
cmp dword [esi + 0x14], 8
jb 0x54b38d
mov esi, dword [esi]
push ecx
push 0x12
lea ebx, [edi + 0x78]
push esi
lea ecx, [ebx + 0x18]
call fcn.004de190
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
add edx, ebx
test eax, eax
je 0x54b3b6
xor eax, eax
mov ecx, 4
cmp dword [edx + 0x38], eax
cmovne ecx, eax
jmp 0x54b3ca
mov eax, edx
xor ecx, ecx
cmp dword [eax + 0x38], ecx
sete cl
lea ecx, [ecx*4 + 2]
or ecx, dword [eax + 0xc]
push 0
push ecx
mov ecx, edx
call fcn.00431fb0
lea ecx, [ebx + 0x18]
call fcn.004de0c0
test eax, eax
jne 0x54b401
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00431fb0
mov edx, dword [edi]
lea eax, [edi + 0x78]
push eax
mov ecx, edi
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0xa8]
mov bl, al
call fcn.00427170
lea ecx, [ebp - 0x40]
call fcn.00427170
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x54b452
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x54b448
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54b470
push edx
push ecx
call fcn.0065106e
add esp, 8
mov al, bl
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.00650ddc
mov esp, ebp
pop ebp
ret
call fcn.0066bea5
int3