Function at 0x10082dcf
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x55c
mov eax, dword [ebp + 0x70]
xor edx, edx
inc edx
cmp word [eax], 0x2a
mov dword [ebp + 0x24], ecx
jne 0x10082df3
cmp word [eax + 2], 0
mov byte [ebp + 0x53], dl
je 0x10082df7
mov byte [ebp + 0x53], 0
push ebx
mov ebx, dword [ebp + 0x6c]
push esi
mov esi, dword [ebp + 0x74]
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x14]
and dword [ebp + 0x48], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x28]
mov ecx, eax
and ecx, edx
push edi
mov edi, ebx
mov dword [ebp + 0x10], ecx
mov ecx, ebx
and eax, 0x10
and ecx, 2
and edi, 0x20
mov dword [ebp - 0x5c], eax
mov eax, ebx
and eax, edx
mov dword [ebp - 0x38], ecx
mov ecx, ebx
mov dword [ebp - 8], edi
mov edi, ebx
and bl, 0x40
and ecx, 0x10
and edi, 0x100
neg bl
sbb bl, bl
and bl, 0xfe
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x30], eax
xor eax, eax
inc bl
cmp ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], edi
je 0x10082e84
mov dword [ebp - 0x30], edx
mov edi, dword [esi + 0x30]
lea ecx, [ebp]
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edi
call fcn.100463df
cmp dword [ebp + 0x10], 0
jne 0x100834c0
mov eax, dword [ebp + 0x78]
test eax, eax
mov dword [ebp - 0x60], eax
jl 0x10082eb2
dec dword [ebp + 0x78]
cmp dword [ebp + 0x10], 0
je 0x10082ec6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
push 0x5c
push 0
push dword [ebp + 0x60]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x4c], eax
sub eax, dword [ebp + 0x60]
lea ecx, [ebp + 0x14]
inc eax
inc eax
sar eax, 1
mov dword [ebp - 0xc], eax
call fcn.100463df
and dword [ebp - 0x2b8], 0
xor eax, eax
mov ecx, 0x93
lea edi, [ebp - 0x2b4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp + 0x60]
lea eax, [ebp + 0x44]
xor edi, edi
push eax
mov dword [ebp + 0x44], edi
call fcn.100b37d1
add esp, 0xc
cmp dword [ebp + 0x44], edi
mov dword [ebp + 0x74], edi
je 0x100830df
cmp byte [0x100e12e4], 0
jle 0x100834d4
mov eax, dword [ebp - 0x2b8]
and eax, 0x10
mov dword [ebp + 0x2c], eax
je 0x10082f70
cmp word [ebp - 0x28c], 0x2e
jne 0x10082f70
cmp word [ebp - 0x28a], 0
je 0x100830be
cmp word [ebp - 0x28a], 0x2e
jne 0x10082f70
cmp word [ebp - 0x288], 0
je 0x100830be
mov ecx, dword [ebp - 0x298]
push dword [ebp - 0xc]
mov edi, dword [ebp - 0x29c]
push dword [ebp + 0x60]
xor eax, eax
or eax, ecx
xor edx, edx
lea ecx, [ebp + 0x40]
mov dword [ebp - 0x48], eax
or edi, edx
call fcn.10050208
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp + 0x40]
call fcn.1004618f
cmp dword [ebp + 0x2c], 0
jne 0x10083061
xor ecx, ecx
cmp word [ebp - 0x28c], cx
je 0x10083010
test byte [ebp - 0x2b7], 4
je 0x10083010
cmp dword [ebp - 0x5c], ecx
je 0x10083010
xor eax, eax
push eax
push 0x80
push 3
push eax
push 7
push eax
push dword [ebp + 0x40]
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x4c], eax
call fcn.10005b9d
xor eax, eax
cmp dword [ebp + 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
je 0x10083006
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
lea ecx, [ebp + 0x4c]
call fcn.10002d56
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
ja 0x1008301a
cmp dword [ebp - 0x18], ecx
jbe 0x10083031
cmp edi, dword [ebp - 0x14]
jb 0x100830b6
ja 0x10083031
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x18]
jb 0x100830b6
cmp dword [ebp - 0x20], ecx
ja 0x1008303b
cmp dword [ebp - 0x24], ecx
jbe 0x1008304a
cmp edi, dword [ebp - 0x20]
ja 0x100830b6
jb 0x1008304a
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x48], eax
ja 0x100830b6
cmp dword [ebp - 0x34], ecx
je 0x10083061
push 0
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x48]
call fcn.100b69d0
or eax, edx
jne 0x100830b6
xor edi, edi
cmp word [ebp - 0x28c], di
je 0x100830d7
cmp dword [ebp + 0x2c], edi
je 0x10083078
cmp dword [ebp - 0x30], edi
jne 0x1008307d
jmp 0x100830b6
cmp dword [ebp - 0x38], edi
je 0x100830b6
push 8
call fcn.100b4338
cmp eax, edi
pop ecx
je 0x10083098
push dword [ebp + 0x2c]
mov ecx, eax
push dword [ebp + 0x40]
call fcn.10062c48
jmp 0x1008309a
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
call fcn.1000f82f
cmp dword [ebp - 8], edi
jne 0x100830b6
mov eax, dword [esi]
cmp eax, edi
jle 0x100830b6
inc dword [ebp + 0x74]
cmp dword [ebp + 0x74], eax
jge 0x100830d7
lea ecx, [ebp + 0x40]
call fcn.1003f96c
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp + 0x44]
call fcn.10005c13
test eax, eax
jne 0x10082f25
jmp 0x100830df
lea ecx, [ebp + 0x40]
call fcn.1003f96c
xor edi, edi
cmp dword [ebp - 8], edi
je 0x100830f8
movsx eax, bl
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
call fcn.1004a580
add esp, 0xc
cmp dword [ebp + 0x1c], edi
mov dword [ebp + 0x74], edi
jle 0x10083242
cmp byte [0x100e12e4], 0
jle 0x100834d4
mov ecx, dword [ebp + 0x24]
add ecx, 0x88
mov ax, word [ecx]
test ah, 1
je 0x10083129
and ax, 0xfeff
mov word [ecx], ax
cmp word [ecx], di
jne 0x10083518
cmp dword [esi], edi
je 0x10083518
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ecx*4]
mov cl, byte [eax + 4]
test cl, cl
je 0x10083157
cmp dword [ebp - 0x54], edi
jne 0x10083160
test cl, cl
jne 0x10083233
cmp dword [ebp - 0x38], edi
je 0x10083233
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
inc dword [ebp + 0x48]
cmp byte [ebp + 0x53], 0
lea eax, [eax + ecx*2]
mov dword [ebp + 0x2c], eax
je 0x100831d7
mov eax, dword [ebp + 0x5c]
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0x2c]
mov dword [ebp + 0x4c], eax
call edi
mov ecx, dword [ebp + 0x5c]
mov edi, eax
mov eax, dword [ebp + 0x4c]
inc edi
push 0x20000
lea eax, [edi + eax + 2]
push eax
call fcn.100a0dc9
cmp dword [ebp + 0x4c], 0
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax]
jle 0x100831c0
mov ecx, dword [ebp + 0x4c]
mov word [eax + ecx*2], 0xd
inc ecx
mov word [eax + ecx*2], 0xa
inc ecx
mov dword [ebp + 0x4c], ecx
mov ecx, dword [ebp + 0x4c]
push edi
push dword [ebp + 0x2c]
lea eax, [eax + ecx*2]
push eax
call fcn.10005b3b
add esp, 0xc
xor edi, edi
jmp 0x10083222
mov ecx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x5c]
push dword [eax]
call fcn.100457c2
cmp dword [ebp - 0x50], edi
je 0x1008320a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x24]
add eax, 2
push 0x100c6a64
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x64]
call fcn.1007b50e
jmp 0x10083222
mov eax, dword [ebp + 0x70]
cmp word [eax], di
je 0x10083222
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x24]
push edi
push dword [ebp + 0x64]
push eax
call fcn.10034bed
mov eax, dword [esi]
cmp eax, edi
jle 0x10083233
dec eax
cmp eax, edi
mov dword [esi], eax
je 0x100834e9
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x1c]
jl 0x10083104
lea ecx, [ebp + 0x44]
call fcn.10002d8b
lea ecx, [ebp + 0x14]
call fcn.100ab7c3
lea ecx, [ebp + 0x14]
call fcn.1003f96c
cmp dword [ebp - 0x58], edi
je 0x10083541
lea ecx, [ebp + 0x30]
call fcn.100463df
push dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push dword [ebp + 0x60]
call fcn.10050208
push 0x100cad28
lea ecx, [ebp + 0xc]
call fcn.1004618f
and dword [ebp - 0x508], 0
xor eax, eax
and dword [ebp + 0x28], eax
mov ecx, 0x93
lea edi, [ebp - 0x504]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x508]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x28]
push eax
call fcn.100b37d1
add esp, 0xc
cmp dword [ebp + 0x28], 0
je 0x1008335f
cmp byte [0x100e12e4], 0
jle 0x1008351c
mov edi, dword [ebp - 0x508]
and edi, 0x10
je 0x10083348
cmp word [ebp - 0x4dc], 0x2e
jne 0x100832ff
cmp word [ebp - 0x4da], 0
je 0x10083348
cmp word [ebp - 0x4da], 0x2e
jne 0x100832ff
cmp word [ebp - 0x4d8], 0
je 0x10083348
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
push dword [ebp + 0x60]
call fcn.10050208
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 4]
call fcn.1004618f
push 8
call fcn.100b4338
test eax, eax
pop ecx
je 0x10083335
push edi
push dword [ebp - 4]
mov ecx, eax
call fcn.10062c48
jmp 0x10083337
xor eax, eax
push eax
lea ecx, [ebp + 0x30]
call fcn.1000f82f
lea ecx, [ebp - 4]
call fcn.1003f96c
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp + 0x28]
call fcn.10005c13
test eax, eax
jne 0x100832bf
lea ecx, [ebp + 0x28]
call fcn.10002d8b
lea ecx, [ebp + 0xc]
call fcn.1003f96c
xor edi, edi
cmp dword [ebp - 8], edi
je 0x10083388
movsx eax, bl
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x30]
call fcn.1004a580
add esp, 0xc
cmp dword [ebp - 0x60], edi
je 0x10083456
cmp dword [ebp + 0x38], edi
mov dword [ebp + 0x74], edi
jle 0x10083456
mov edi, dword [ebp + 0x24]
cmp byte [0x100e12e4], 0
jle 0x10083531
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x74]
push dword [eax + ecx*4]
lea ecx, [ebp + 0x3c]
call fcn.1005023c
push dword [ebp - 0x4c]
lea ecx, [ebp + 0x3c]
call fcn.1004618f
cmp dword [ebp + 0x10], 0
je 0x100833f3
push 4
call fcn.100b4338
test eax, eax
pop ecx
je 0x100833e6
mov ecx, dword [ebp + 0x3c]
and dword [ebp + 0x3c], 0
mov dword [eax], ecx
jmp 0x100833e8
xor eax, eax
push eax
lea ecx, [ebp]
call fcn.1000f82f
jmp 0x1008343f
push dword [ebp + 0x7c]
mov ecx, edi
push dword [ebp + 0x78]
push esi
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push dword [ebp + 0x64]
push dword [ebp + 0x3c]
push dword [ebp + 0x5c]
call fcn.10082dcf
add dword [ebp + 0x48], eax
lea eax, [edi + 0x88]
mov cx, word [eax]
test ch, 1
je 0x1008342c
and cx, 0xfeff
mov word [eax], cx
cmp word [eax], 0
jne 0x10083529
cmp dword [esi], 0
je 0x10083529
lea ecx, [ebp + 0x3c]
call fcn.1003f96c
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp + 0x38]
jl 0x100833a0
cmp byte [0x100e12e4], 0
jle 0x10083531
cmp dword [ebp + 0x10], 0
je 0x10083531
inc dword [ebp + 0x20]
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x28]
jge 0x1008348d
lea ecx, [ebp + 0x30]
call fcn.100ab7c3
lea ecx, [ebp + 0x30]
call fcn.1003f96c
jmp 0x10082eb2
cmp dword [ebp + 8], 0
jle 0x10083531
push dword [ebp - 0x1c]
lea eax, [ebp]
push eax
call fcn.10042fbf
pop ecx
pop ecx
lea ecx, [ebp]
call fcn.100ab7c3
lea ecx, [ebp + 0x30]
call fcn.100ab7c3
lea ecx, [ebp + 0x30]
call fcn.1003f96c
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
and dword [ebp + 0x20], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x28], eax
jmp 0x10082ea5
lea ecx, [ebp + 0x44]
call fcn.10002d8b
lea ecx, [ebp + 0x14]
call fcn.100ab7c3
lea ecx, [ebp + 0x14]
jmp 0x1008353c
mov esi, dword [ebp + 0x48]
lea ecx, [ebp + 0x44]
call fcn.10002d8b
lea ecx, [ebp + 0x14]
call fcn.100ab7c3
lea ecx, [ebp + 0x14]
call fcn.1003f96c
lea ecx, [ebp]
call fcn.100ab7c3
lea ecx, [ebp]
call fcn.1003f96c
mov eax, esi
jmp 0x10083554
xor esi, esi
jmp 0x100834ec
lea ecx, [ebp + 0x28]
call fcn.10002d8b
lea ecx, [ebp + 0xc]
jmp 0x1008352c
lea ecx, [ebp + 0x3c]
call fcn.1003f96c
lea ecx, [ebp + 0x30]
call fcn.100ab7c3
lea ecx, [ebp + 0x30]
call fcn.1003f96c
lea ecx, [ebp]
call fcn.100ab7c3
lea ecx, [ebp]
call fcn.1003f96c
mov eax, dword [ebp + 0x48]
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret 0x24