Function at 0x587590
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f4d41
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x82d084]
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 0x5875da
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xb8], eax
cmp eax, 0xffffffff
jne 0x587605
xor bl, bl
jmp 0x587972
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x58762a
mov eax, dword [ebp - 0x48]
mov bl, 1
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xac], eax
jmp 0x587642
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 0x587972
cmp dword [ebp - 0xac], 0
jl 0x587972
jg 0x587672
cmp dword [ebp - 0xb0], 0
jbe 0x587972
mov edx, dword [str.NGLClient_]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x587690
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00430160
push 7
push str.default
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00441450
push 4
push str..log
lea ecx, [ebp - 0x28]
call fcn.00441450
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.0050b8a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, esi
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x587708
mov ecx, dword [esi]
push dword [ebp - 0x30]
mov edx, dword [esi + 0x10]
push eax
push 0
call fcn.004389e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x587761
lea ecx, [ebp - 0x40]
call fcn.0042fd70
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x58775a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x587750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x587990
push edx
push ecx
call fcn.0067bc93
add esp, 8
xor al, al
jmp 0x587974
cmp dword [edi + 0xdc], 0
je 0x58779a
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004fba60
test eax, eax
jne 0x58779a
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.0043ab30
push esi
lea ecx, [ebp - 0xa8]
call fcn.0042fc50
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.0042fc50
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.00518100
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.0051ab00
lea eax, [ebp - 0x90]
mov edx, 0x75b170
push eax
lea ecx, [ebp - 0xd0]
call fcn.00439cf0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x587813
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0042ff20
lea ecx, [ebp - 0xd0]
call fcn.0042fd70
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.00518350
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00518180
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.0042fe00
lea ecx, [ebp - 0x78]
call fcn.0042fd70
lea ecx, [ebp - 0x90]
call fcn.0042fd70
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0042fd70
lea edx, [ebp - 0xa8]
mov ecx, esi
call fcn.00518400
test al, al
je 0x587921
cmp dword [esi + 0x14], 8
jb 0x5878ad
mov esi, dword [esi]
push ecx
push 0x12
lea ebx, [edi + 0x78]
push esi
lea ecx, [ebx + 0x18]
call fcn.004fbb30
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
add edx, ebx
test eax, eax
je 0x5878d6
xor eax, eax
mov ecx, 4
cmp dword [edx + 0x38], eax
cmovne ecx, eax
jmp 0x5878ea
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.0043ab30
lea ecx, [ebx + 0x18]
call fcn.004fba60
test eax, eax
jne 0x587921
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.0043ab30
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.0042fd70
lea ecx, [ebp - 0x40]
call fcn.0042fd70
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x587972
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x587968
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x587990
push edx
push ecx
call fcn.0067bc93
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.0067ba01
mov esp, ebp
pop ebp
ret
call fcn.00691015
int3