Function at 0x556850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b2151
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x7ca00c]
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 0x55689a
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 0x5568c5
xor bl, bl
jmp 0x556c22
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x5568ea
mov eax, dword [ebp - 0x48]
mov bl, 1
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xac], eax
jmp 0x556902
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 0x556c22
cmp dword [ebp - 0xac], 0
jl 0x556c22
jg 0x556932
cmp dword [ebp - 0xb0], 0
jbe 0x556c22
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.00428b60
push 7
push str.default
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00439a20
push 4
push str..log
lea ecx, [ebp - 0x28]
call fcn.00439a20
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.004f5b10
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, esi
cmovae eax, dword [ebp - 0x40]
cmp dword [esi + 0x14], 8
jb 0x5569b8
mov ecx, dword [esi]
push dword [ebp - 0x30]
mov edx, dword [esi + 0x10]
push eax
push 0
call fcn.004313b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x556a11
lea ecx, [ebp - 0x40]
call fcn.00428770
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x556a0a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x556a00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x556c40
push edx
push ecx
call fcn.0063e103
add esp, 8
xor al, al
jmp 0x556c24
cmp dword [edi + 0xdc], 0
je 0x556a4a
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004e5f70
test eax, eax
jne 0x556a4a
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.00433500
push esi
lea ecx, [ebp - 0xa8]
call fcn.00428650
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.00428650
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.005022a0
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.00504c50
lea eax, [ebp - 0x90]
mov edx, 0x701ee0
push eax
lea ecx, [ebp - 0xd0]
call fcn.004326c0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x556ac3
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00428920
lea ecx, [ebp - 0xd0]
call fcn.00428770
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.005024f0
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.00502320
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.00428800
lea ecx, [ebp - 0x78]
call fcn.00428770
lea ecx, [ebp - 0x90]
call fcn.00428770
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00428770
lea edx, [ebp - 0xa8]
mov ecx, esi
call fcn.005025a0
test al, al
je 0x556bd1
cmp dword [esi + 0x14], 8
jb 0x556b5d
mov esi, dword [esi]
push ecx
push 0x12
lea ebx, [edi + 0x78]
push esi
lea ecx, [ebx + 0x18]
call fcn.004e6040
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
add edx, ebx
test eax, eax
je 0x556b86
xor eax, eax
mov ecx, 4
cmp dword [edx + 0x38], eax
cmovne ecx, eax
jmp 0x556b9a
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.00433500
lea ecx, [ebx + 0x18]
call fcn.004e5f70
test eax, eax
jne 0x556bd1
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.00433500
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.00428770
lea ecx, [ebp - 0x40]
call fcn.00428770
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x556c22
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x556c18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x556c40
push edx
push ecx
call fcn.0063e103
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.0063de71
mov esp, ebp
pop ebp
ret
call fcn.006534c5
int3