Function at 0x10010190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ad411
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, edx
mov esi, ecx
test edi, edi
je 0x10010410
cmp word [edi], 0
je 0x10010410
test ebx, ebx
jne 0x100101f7
mov eax, 0x80070057
jmp 0x10010415
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
mov dword [esp + 0x3c], ebx
call ecx
xor eax, eax
mov dword [esp + 0x268], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x26c], 1
mov edx, dword [ebx]
mov ecx, dword [edx]
push 0x100d0d04
push ebx
call ecx
mov dword [esp + 0x18], eax
test eax, eax
jl 0x10010749
cmp eax, 1
je 0x10010749
cmp dword [esp + 0x14], 0
jne 0x10010262
mov dword [esp + 0x268], 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov eax, 0x80004005
jmp 0x10010415
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x10010271
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x354]
test eax, eax
je 0x1001028e
push eax
call fcn.100628c6
add esp, 4
mov dword [esi + 0x354], 0
mov ecx, dword [esi + 0x14]
push 0
push 0x20000000
neg ecx
push 3
sbb ecx, ecx
push 0
and ecx, 0xc0000000
push 1
add ecx, 0xc0000000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x10010383
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10010325
cmp eax, 0x20
je 0x10010325
cmp eax, 0xa7
je 0x10010325
cmp eax, 0x21
je 0x10010325
cmp eax, 0x13
je 0x10010325
test eax, eax
jle 0x100102f1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001030b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, esi
jmp 0x10010415
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x4c], eax
cmp eax, 0xffffffff
jne 0x1001037c
call fcn.10002d30
mov esi, eax
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010362
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, esi
jmp 0x10010415
mov dword [esi + 0x14], 1
push 0x1ff
xor edi, edi
lea edx, [esp + 0x59]
push edi
push edx
mov byte [esp + 0x60], 0
call fcn.10064e10
mov eax, dword [esi + 0x4c]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
lea edx, [esi + 8]
push edx
mov eax, 0x200
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.10003760
mov edi, eax
test edi, edi
jl 0x100104fd
cmp edi, 1
je 0x100104fd
cmp dword [esp + 0x54], 0x5120372
je 0x1001043b
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100103fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xe00e1001
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.10062448
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x4c]
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10010343
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
push 0x200
push edi
push edx
call fcn.100ab490
or eax, edx
je 0x100104a1
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010484
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, 0xe0037001
jmp 0x10010415
mov edx, dword [esp + 0x2c]
push 0
push 0x200
push edi
push edx
call fcn.100ab3e0
mov dword [esp + 0x2c], eax
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x30], edx
mov dword [esi + 0x60], 0
test eax, eax
jne 0x1001052f
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x70]
mov edx, 0x200
mul edx
push esi
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.10011d20
mov edi, eax
test edi, edi
jl 0x100104fd
cmp edi, 1
jne 0x10010683
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010515
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov eax, edi
jmp 0x10010415
cmp eax, 1
jne 0x100105c7
lea edx, [esp + 0x54]
push edx
call fcn.10011b10
cmp dword [esp + 0x6c], eax
jne 0x1001046c
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x348], eax
shr eax, 9
mov dword [esi + 0x34c], eax
mov eax, dword [esp + 0x70]
mov ecx, 0x200
mov dword [esi + 0x350], edx
mul ecx
mov dword [esi + 0x50], 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.100119f0
mov edi, eax
test edi, edi
jl 0x10010595
cmp edi, 1
jne 0x10010671
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100105ad
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, edi
jmp 0x10010415
cmp eax, 2
jne 0x10010714
mov edi, dword [esp + 0x60]
mov ecx, 0x200
lea edx, [esp + 0x54]
mov dword [esp + 0x60], 0
call fcn.10013c20
cmp edi, eax
jne 0x1001046c
test byte [esp + 0x5c], 1
mov dword [esi + 0x50], 2
je 0x1001062b
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
push esi
mov dword [esi + 0x60], 1
call fcn.10010c90
mov edi, eax
test edi, edi
jl 0x100104fd
cmp edi, 1
jne 0x10010671
jmp 0x100104fd
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [esi + 0x348], eax
shr eax, 9
mov dword [esi + 0x34c], eax
mov eax, dword [esp + 0x70]
mov ecx, 0x200
mov dword [esi + 0x350], edx
mul ecx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
call fcn.100119f0
mov edi, eax
test edi, edi
jl 0x100104fd
cmp edi, 1
je 0x100104fd
mov eax, esi
call fcn.10010780
test eax, eax
jne 0x10010683
mov dword [esi + 0x14], 1
lea edx, [esp + 0x3c]
push edx
call fcn.1001ad80
xor eax, eax
mov byte [esp + 0x268], 2
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x20]
shrd eax, ecx, 9
shr ecx, 9
lea edi, [esp + 0x1c]
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.10011b80
mov edi, eax
test edi, edi
jl 0x10010706
cmp edi, 1
je 0x10010706
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x40]
call fcn.100059a0
mov eax, dword [esp + 0x14]
push 1
push eax
push esi
mov eax, edi
call fcn.10003240
mov edi, eax
test edi, edi
jne 0x100106f8
mov dword [esi + 0x18], 1
lea esi, [esp + 0x3c]
call fcn.10005a90
jmp 0x100104fd
lea esi, [esp + 0x3c]
call fcn.10005a90
jmp 0x10010595
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001072c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, 0xe0037000
jmp 0x10010415
mov byte [esp + 0x268], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10010761
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x268], 0xffffffff
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov eax, dword [esp + 0x18]
jmp 0x10010415