Function at 0x10001600
Capabilities:
Get file size

Disassembly:
sub esp, 0x630
mov eax, dword [0x1001703c]
xor eax, esp
mov dword [esp + 0x62c], eax
cmp dword [0x100199d0], 0
je 0x10001634
xor eax, eax
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.1000536e
add esp, 0x630
ret
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x230]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10014b84
lea eax, [esp + 0x438]
lea ecx, [esp + 0x230]
call fcn.10004a50
push eax
push 0x10014b9c
mov ecx, 0x104
lea ebx, [esp + 0x30]
call fcn.10001160
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.100053f2
add esp, 4
push 0
push 0
push 0
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100016c2
xor ebx, ebx
jmp 0x100016da
push 0
lea edx, [esp + 0x24]
push edx
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx], 0x6c
jne 0x100020ad
mov al, 0x6f
cmp byte [ebx + 1], al
jne 0x100020ad
cmp byte [ebx + 2], al
jne 0x100020ad
cmp byte [ebx + 3], 0x76
jne 0x100020ad
cmp byte [ebx + 4], 0x21
jne 0x100020ad
movzx eax, byte [ebx + 5]
movzx ecx, byte [ebx + 6]
movzx edx, byte [ebx + 7]
movzx edi, byte [ebx + 0xb]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebx + 9]
movzx esi, byte [ebx + 0xf]
mov dword [0x10019560], eax
movzx eax, byte [ebx + 8]
shl edx, 8
add edx, eax
movzx eax, byte [ebx + 0xc]
shl ecx, 8
mov dword [0x100190c8], edx
movzx edx, byte [ebx + 0xa]
add ecx, edx
movzx edx, byte [ebx + 0xe]
mov dword [0x100190f4], ecx
movzx ecx, byte [ebx + 0xd]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebx + 0x12]
mov dword [0x100190f0], ecx
movzx ecx, byte [ebx + 0x11]
shl ecx, 8
add ecx, edx
movzx edx, byte [ebx + 0x15]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 0x10]
mov dword [0x100190c0], ecx
movzx ecx, byte [ebx + 0x14]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 0x13]
shl eax, 8
add eax, ecx
mov dword [0x10019518], eax
movzx eax, byte [ebx + 0x16]
shl edx, 8
add edx, eax
mov dword [0x100199dc], edx
movzx ecx, byte [ebx + 0x17]
movzx edx, byte [ebx + 0x18]
shl ecx, 8
add ecx, edx
mov dword [0x100199e0], ecx
movzx eax, byte [ebx + 0x19]
movzx ecx, byte [ebx + 0x1a]
shl eax, 8
add eax, ecx
mov dword [0x100199e4], eax
movzx edx, byte [ebx + 0x1b]
movzx eax, byte [ebx + 0x1c]
shl edx, 8
add edx, eax
mov dword [0x100199e8], edx
movzx ecx, byte [ebx + 0x1d]
movzx edx, byte [ebx + 0x1e]
shl ecx, 8
add ecx, edx
mov dword [0x100199ec], ecx
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [0x100190e4], esi
mov dword [0x100190e8], eax
mov dword [0x100190d0], eax
mov dl, cl
test cl, cl
jne 0x1000181c
mov dl, 0xf1
mov eax, 0x20
cmp ecx, eax
jbe 0x10001836
mov cl, byte [eax + ebx]
xor cl, al
xor cl, dl
mov byte [eax + ebx], cl
inc eax
cmp eax, dword [esp + 0x20]
jb 0x10001825
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019510], eax
mov eax, dword [0x100190e4]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x100190cc], eax
mov eax, dword [0x100190e4]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x1001957c], eax
mov eax, dword [0x100190f4]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x100190e0], eax
mov eax, dword [0x100190c8]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x100190ec], eax
mov eax, dword [0x10019560]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019524], eax
mov eax, dword [0x10019560]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019580], eax
mov eax, dword [0x10019560]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019558], eax
xor ecx, ecx
mov eax, dword [0x10019560]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x100190d8], eax
mov eax, dword [0x10019560]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
add esp, 0x28
mov dword [0x1001958c], eax
xor esi, esi
jmp 0x10001980
mov ebp, dword [esi + 0x100199dc]
test ebp, ebp
jbe 0x100019ab
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
add esp, 4
mov dword [esi + 0x10019568], eax
add esi, 4
cmp esi, 0x14
jb 0x10001980
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019520], eax
mov eax, dword [0x100190f0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x100190dc], eax
mov eax, dword [0x100190f0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019588], eax
mov eax, dword [0x100190c0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x1001951c], eax
mov eax, dword [0x100190c0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov edx, dword [0x10019560]
add esp, 0x14
xor ebp, ebp
mov dword [0x10019790], eax
mov esi, 0x20
test edx, edx
jbe 0x10001ae0
cmp byte [esi + ebx], 8
lea eax, [esi + ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
jbe 0x10001a7c
inc esi
cmp byte [esi + ebx], 8
ja 0x10001a75
inc esi
mov edi, esi
sub edi, dword [esp + 0x14]
push edi
call fcn.100053f2
mov ecx, dword [0x10019524]
mov edx, dword [0x1001958c]
mov dword [ecx + ebp*4], eax
movzx eax, byte [ebx + esi - 1]
mov dword [edx + ebp*4], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + ebp*4]
dec edi
push edi
push eax
push ecx
mov dword [esp + 0x2c], ecx
call fcn.1000c670
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x10019524]
mov byte [ecx + edi], 0
mov eax, dword [edx + ebp*4]
sub eax, dword [esp + 0x24]
mov edx, dword [0x10019560]
inc ebp
add esp, 0x10
mov byte [eax + esi - 1], 0
cmp ebp, edx
jb 0x10001a64
mov edi, dword [esp + 0x10]
lea ebp, [esi + edx*4]
mov dword [esp + 0x18], ebp
test edx, edx
jbe 0x10001b78
mov edx, dword [0x10019558]
lea eax, [esi + ebx + 2]
lea ecx, [ebx + ebp + 3]
sub ebp, esi
mov esi, dword [0x10019580]
sub esi, edx
mov dword [esp + 0x1c], esi
mov esi, dword [0x10019560]
mov dword [esp + 0x14], esi
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [esp + 0x1c]
mov dword [edi + edx], esi
movzx esi, byte [ecx - 3]
movzx edi, byte [ecx - 2]
shl esi, 8
add esi, edi
movzx edi, byte [eax + ebp]
shl esi, 8
add esi, edi
movzx edi, byte [ecx]
shl esi, 8
add esi, edi
mov dword [edx], esi
add eax, 4
add ecx, 4
add edx, 4
sub dword [esp + 0x14], 1
jne 0x10001b15
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov edx, dword [0x10019560]
mov esi, dword [0x100190c8]
lea eax, [edx*4]
add ebp, eax
xor ecx, ecx
test esi, esi
jbe 0x10001bca
lea eax, [ebx + ebp + 2]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [0x100190ec]
mov dword [edi + ecx*4], esi
mov esi, dword [0x100190c8]
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10001b91
mov edi, dword [esp + 0x10]
lea ebp, [ebp + esi*4]
mov esi, dword [0x100190f4]
xor ecx, ecx
mov dword [esp + 0x18], ebp
test esi, esi
jbe 0x10001c1a
lea eax, [ebx + ebp + 2]
movzx edi, byte [eax - 2]
movzx ebp, byte [eax - 1]
shl edi, 8
add edi, ebp
movzx ebp, byte [eax]
shl edi, 8
add edi, ebp
movzx ebp, byte [eax + 1]
shl edi, 8
add edi, ebp
mov ebp, dword [0x100190e0]
mov dword [ebp + ecx*4], edi
inc ecx
add eax, 4
cmp ecx, esi
jb 0x10001be2
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
lea ebp, [ebp + esi*4]
xor esi, esi
mov dword [0x10019514], 0
test edi, edi
jbe 0x10001cc2
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001c4a
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001c43
inc ebp
mov eax, ebp
sub eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x20], eax
call fcn.100053f2
mov ecx, dword [0x10019520]
add esp, 4
cmp dword [0x10019514], 0
mov edi, eax
mov dword [ecx + esi*4], edi
jne 0x10001c7f
cmp byte [ebx + ebp - 1], 1
jne 0x10001c7f
mov dword [0x10019514], esi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec eax
push eax
push edx
push edi
mov dword [esp + 0x28], eax
call fcn.1000c670
mov eax, dword [esp + 0x28]
mov ecx, dword [0x10019520]
mov byte [eax + edi], 0
mov edx, dword [ecx + esi*4]
sub edx, dword [esp + 0x20]
inc esi
add esp, 0xc
mov byte [edx + ebp - 1], 0
cmp esi, dword [esp + 0x10]
jb 0x10001c32
mov edx, dword [0x10019560]
mov eax, dword [esp + 0x10]
sub eax, dword [0x10019514]
mov ecx, dword [0x100190f0]
mov dword [0x100190f8], eax
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001d64
jmp 0x10001cf0
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001d08
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001d01
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.100053f2
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x100190dc]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000c670
mov eax, dword [esp + 0x20]
mov edx, dword [0x100190dc]
mov ecx, ebp
sub ecx, dword [esp + 0x24]
mov byte [esi + edi], 0
mov edx, dword [edx + eax*4]
mov byte [ecx + edx - 1], 0
mov ecx, dword [0x100190f0]
inc eax
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x10001cf0
mov edx, dword [0x10019560]
mov dword [esp + 0x10], 0
test ecx, ecx
jbe 0x10001de0
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001d88
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001d81
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.100053f2
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x10019588]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000c670
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10019588]
mov byte [esi + edi], 0
mov edx, dword [ecx + eax*4]
sub edx, dword [esp + 0x24]
inc eax
add esp, 0x10
mov byte [edx + ebp - 1], 0
mov dword [esp + 0x10], eax
cmp eax, dword [0x100190f0]
jb 0x10001d70
mov edx, dword [0x10019560]
cmp dword [0x100190e4], 0
mov dword [esp + 0x10], 0
jbe 0x10001eb2
cmp byte [ebx + ebp], 8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jbe 0x10001e0d
inc ebp
cmp byte [ebx + ebp], 8
ja 0x10001e06
inc ebp
mov esi, ebp
sub esi, dword [esp + 0x14]
push esi
call fcn.100053f2
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
dec esi
mov edi, eax
mov eax, dword [0x10019510]
push esi
push edx
push edi
mov dword [eax + ecx*4], edi
call fcn.1000c670
mov ecx, dword [0x10019510]
mov byte [esi + edi], 0
mov esi, dword [esp + 0x20]
mov edx, dword [ecx + esi*4]
mov eax, ebp
sub eax, dword [esp + 0x24]
push 0x20
mov byte [eax + edx - 1], 0
movzx eax, byte [ebx + ebp]
movzx ecx, byte [ebx + ebp + 1]
movzx edx, byte [ebx + ebp + 2]
shl eax, 8
add eax, ecx
mov ecx, dword [0x1001957c]
shl eax, 8
add eax, edx
mov dword [ecx + esi*4], eax
add ebp, 3
call fcn.100053f2
mov edx, dword [0x100190cc]
mov dword [edx + esi*4], eax
mov edi, eax
mov eax, dword [esp + 0x24]
lea esi, [ebx + ebp]
inc eax
add esp, 0x14
mov ecx, 8
add ebp, 0x20
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
cmp eax, dword [0x100190e4]
jb 0x10001df5
mov edx, dword [0x10019560]
xor esi, esi
cmp dword [0x100190c0], esi
jbe 0x10001f00
lea esp, [esp]
movzx edi, byte [ebx + ebp]
push edi
call fcn.100053f2
mov ecx, dword [0x1001951c]
mov dword [ecx + esi*4], eax
mov eax, dword [0x10019790]
push edi
lea edx, [ebx + ebp + 1]
mov dword [eax + esi*4], edi
mov eax, dword [ecx + esi*4]
push edx
push eax
call fcn.1000c670
inc esi
add esp, 0x10
lea ebp, [edi + ebp + 1]
cmp esi, dword [0x100190c0]
jb 0x10001ec0
mov edx, dword [0x10019560]
xor ecx, ecx
test edx, edx
jbe 0x10001f3f
lea eax, [ebx + ebp + 2]
lea ebx, [ebx]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [0x100190d8]
mov dword [edi + ecx*4], esi
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10001f10
lea ebp, [ebp + edx*4]
xor edx, edx
mov eax, dword [edx + 0x100199dc]
test eax, eax
jbe 0x10001f9d
xor ecx, ecx
test eax, eax
jbe 0x10001f93
lea eax, [ebx + ebp + 2]
lea esp, [esp]
movzx esi, byte [eax - 2]
movzx edi, byte [eax - 1]
shl esi, 8
add esi, edi
movzx edi, byte [eax]
shl esi, 8
add esi, edi
movzx edi, byte [eax + 1]
shl esi, 8
add esi, edi
mov edi, dword [edx + 0x10019568]
mov dword [edi + ecx*4], esi
inc ecx
add eax, 4
cmp ecx, dword [edx + 0x100199dc]
jb 0x10001f60
mov ecx, dword [edx + 0x100199dc]
lea ebp, [ebp + ecx*4]
add edx, 4
cmp edx, 0x14
jb 0x10001f45
lea edi, [ebp + 3]
cmp dword [esp + 0x20], edi
jbe 0x10002098
movzx edx, byte [ebx + ebp]
movzx esi, byte [ebx + ebp + 1]
movzx eax, byte [ebx + ebp + 2]
shl edx, 8
add esi, edx
shl esi, 8
add esi, eax
mov dword [0x100190c4], esi
je 0x10002098
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov dword [0x10019584], eax
mov eax, dword [0x100190c4]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100053f2
mov ecx, dword [0x100190c4]
add esp, 8
mov dword [0x10019550], eax
lea esi, [edi + ecx*4]
test ecx, ecx
jbe 0x10002098
lea ecx, [edi + ebx + 2]
lea edx, [esi + ebx + 3]
sub esi, edi
mov edi, dword [0x10019584]
sub edi, eax
mov dword [esp + 0x1c], edi
mov edi, dword [0x100190c4]
mov dword [esp + 0x18], edi
movzx edi, byte [ecx - 2]
movzx ebp, byte [ecx - 1]
shl edi, 8
add edi, ebp
movzx ebp, byte [ecx]
shl edi, 8
add edi, ebp
movzx ebp, byte [ecx + 1]
shl edi, 8
add edi, ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + ebp], edi
movzx edi, byte [edx - 3]
movzx ebp, byte [edx - 2]
shl edi, 8
add edi, ebp
movzx ebp, byte [esi + ecx]
shl edi, 8
add edi, ebp
movzx ebp, byte [edx]
shl edi, 8
add edi, ebp
mov dword [eax], edi
add ecx, 4
add edx, 4
add eax, 4
sub dword [esp + 0x18], 1
jne 0x10002043
push ebx
call fcn.1000537d
mov eax, 1
add esp, 4
mov dword [0x100199d0], eax
jmp 0x100020af
xor eax, eax
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000536e
add esp, 0x630
ret
jmp 0x10001600